Not sure I entirely get the use case... Why is your autoloader so dynamic? Handling autoloading that way is quite risky ;)
Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 22 April 2013 17:30, Ferns Glez [via Zend Framework Community] < [email protected]> wrote: > Sure. I'm creating a base module. I need the reference of the module > manager in order to extract some data from it prior to the call to > getAutoloaderConfig() and getConfig(), because those methods will use the > extracted data... and the problem is that the init() method is called after > getAutoloaderConfig() and getConfig(). > > That is the problem. So, the only one solution I see is save the module > manager reference in the module class constructor. > > I think that modules like ZfcBase can solve the problem of force the > implementation of a getDir() method by getting the module manager reference > in the module class constructor... It is just one point of view. > > Thanks :) > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://zend-framework-community.634137.n4.nabble.com/Access-the-module-manager-reference-in-the-constructor-of-a-module-class-tp4659794p4659825.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/Access-the-module-manager-reference-in-the-constructor-of-a-module-class-tp4659794p4659834.html Sent from the Zend Framework mailing list archive at Nabble.com.
