Issue Type: Bug Created: 2011-07-07T13:07:33.000+0000 Last Updated: 2012-05-31T15:50:17.000+0000 Status: Resolved Fix version(s): Reporter: Evgheni Poleacov (zendmania) Assignee: Evgheni Poleacov (zendmania) Tags: - Authentication
Related issues: Attachments:
When we using modular application and some kinds of resources for example: "router","frontcontroller", etc.
This resources initialized many times (as many as amount of modules).
How to reproduce: Simple put debug message after line 556 of \Zend\Application\AbtractBootstrap like that:
<pre class="highlight"> $plugin = $broker->load($resource); $return = $plugin->init(); \Zend\Debug::dump($resource); unset($this->_started[$resourceName]); $this->_markRun($resourceName);
By this code you can see that resources initialized by broker multiple times.
That happens because we call "_markRun" method of module bootstrap, but we should call broker to mark this resource like initialized per broker not per every bootstrap.
Posted by Evgheni Poleacov (zendmania) on 2011-07-07T14:45:25.000+0000
I tried to fix that, but to much linkage between resources there.
Posted by Evgheni Poleacov (zendmania) on 2011-07-14T06:59:58.000+0000
Fixed with next commits:
Have you found an issue?
See the Overview section for more details.