-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix broken event system #677
Conversation
Works now similar to how https://github.com/zendframework/zend-eventmanager/blob/master/src/EventManagerAwareTrait.php works.
Such that attached listeners set in constructor will not be overwritten later by Zend/Mvc's initializer.
This way the listeners in ZF2 style do not have to be adapted.
The only way to use them was via the shared service manager. But in ZF3 this manager is only instantiated after construction. Thus this has no function anymore.
This PR tries to make the (shared) event system functional again under ZF3. See #678. It addresses all these points by:
With these fixes our app functions the way it did before. The only change was to replace the The tests do need to be updated. But wanted to get some feedback first about if this will be merged. |
Would love to hear some feedback @Danielss89, maybe @Netiul? Now working of a patched version myself; but not ideal! |
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.
Tested locally, these changes work - and it helps a lot.
Looks good to me. Haven't tested this yet though. |
This can be removed from adapters and AdapterChain: These changes work for me. @Danielss89 could you merge the request? |
@Danielss89 poke on this? :) |
Thanks! 👍 |
Thanks @Danielss89 a bunch: much appreciated. Now I can stop with working based of strange forks and branches. Could you perhaps release a new version? |
What about releasing a new version @Danielss89 ? |
See comment below.