Hi Mark, Attaching earlier than `onBootstrap` is only possible via `init`, and even there, it would still be skipping some of the module loading related events.
What you can (eventually) do is something quite hacky, which is re-defining the Application class so that it actually registers listeners during `Application::init()`, and not during module loading. I'd actually say that we can make that optional by allowing end users to redefine their `index.php` (instead of using dirty hacks) Cheers, Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 10 March 2014 18:42, moderndeveloper [via Zend Framework Community] < [email protected]> wrote: > I'm working to get Zend Developer Tools to set a "universal" event > listener for profiling of triggered events. I've gotten the code to > work<https://github.com/zendframework/ZendDeveloperTools/pull/142>, > but with it being attached in the onBootstrap(), it's attached after > several events have already fired. The listener is a > SharedListenerAggregateInterface class that is being instantiated via the > service manager based on a config option. > > Is there a way to actually get this attached earlier than onBootstrap? As > far as I can tell, init() only has access to the ModuleEvent where I can > get the event manager, but no the configs or service manager. Am I missing > anything? > > --Mark G. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://zend-framework-community.634137.n4.nabble.com/Registering-module-event-listeners-early-in-the-stack-tp4661804.html > To start a new topic under Zend Framework, email > [email protected] > To unsubscribe from Zend Framework Community, click > here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4> > . > NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> > -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Registering-module-event-listeners-early-in-the-stack-tp4661804p4661805.html Sent from the Zend Framework mailing list archive at Nabble.com.
