mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-03 12:17:48 +08:00
Update ListenerProviderFactory.php
This commit is contained in:
parent
046c8cc4ea
commit
3e98a9c7db
@ -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']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user