ZF2-30: Multiple initialization of \Zend\Application\Resource plugins

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();

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.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.