Update ListenerProviderFactory.php

This commit is contained in:
huangzhhui 2018-12-31 16:32:17 +08:00
parent 046c8cc4ea
commit 3e98a9c7db

View File

@ -44,7 +44,7 @@ class ListenerProviderFactory
} }
if ($instance instanceof MessageListenerInterface) { if ($instance instanceof MessageListenerInterface) {
foreach ($instance->listen() as $event) { foreach ($instance->listen() as $event) {
$provider->on($event, [$instance, 'process']); $provider->on($event, [$instance, 'notify']);
} }
} }
} }