New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listener factory and checker #22
Conversation
@viktorprogger is it possible to integrate |
@samdark, yes, there will be sattelite PRs in the demo and templates. |
|
||
throw new InvalidEventConfigurationFormatException( | ||
"Event listeners for $eventName must be an array, $type given." | ||
"Event listeners for $eventName must be an iterable, $type given." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Such check exists in ListenerConfigurationChecker
. Should we duplicate it here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, 4 lines after this one we do foreach ($listeners...
. We just throw an exception instead of php error.
Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This PR is evolution of yiisoft/event-dispatcher#55
Support of invokale objects is added.
Corresponding PRs in the other packages should be merged after this one: