We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there a reason there isn't a Lazy Aggregate for attaching listeners to the Shared Event Manager?
Something like:
class SharedLazyListenerAggregate { ... public function attachShared(SharedEventManagerInterface $manager, $priority = 1) { foreach ($this->lazyListeners as $lazyListener) { $this->listeners[] = $manager->attach( '*', $lazyListener->getEvent(), $lazyListener, $lazyListener->getPriority($priority) ); } }
Ping @bakura10
Originally posted by @davidwindell at zendframework/zend-eventmanager#49
The text was updated successfully, but these errors were encountered:
What would a lazy listener do?
Originally posted by @Ocramius at zendframework/zend-eventmanager#49 (comment)
Sorry, something went wrong.
@Ocramius this would effectively be the same as the existing LazyListenerAggregate (https://github.com/zendframework/zend-eventmanager/blob/master/src/LazyListenerAggregate.php) but allow attaching to the Shared Event Manager.
Originally posted by @davidwindell at zendframework/zend-eventmanager#49 (comment)
No branches or pull requests
Is there a reason there isn't a Lazy Aggregate for attaching listeners to the Shared Event Manager?
Something like:
Ping @bakura10
Originally posted by @davidwindell at zendframework/zend-eventmanager#49
The text was updated successfully, but these errors were encountered: