ZF2-36: Multiple brokers initialization

Issue Type: Bug Created: 2011-07-18T13:46:27.000+0000 Last Updated: 2012-05-31T15:50:17.000+0000 Status: Resolved Fix version(s): Reporter: Evgheni Poleacov (zendmania) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Broker

Related issues: Attachments:


If we have broker customization with next config:

<pre class="highlight">
resource_broker.class = "ZendTest\Application\TestAsset\ResourceBroker"
resource_broker.options.enabled = true

and after that we try to set application options by next code:

<pre class="highlight">

application broker would be overwritten by new instance of broker.

That happens because in Zend\Application\AbstractBootstrap.php method setOptions() after next line:

<pre class="highlight">
$options = $this->_options;

all previous options merged with new set of options goes to initialization once more.


Posted by Matthew Weier O'Phinney (matthew) on 2011-07-18T14:11:23.000+0000

Can you verify that this is true in current master? There were a number of changes around a week ago that may have corrected this.

Posted by Evgheni Poleacov (zendmania) on 2011-07-18T14:32:30.000+0000

Yes, this bug happens on current master too.

Posted by Evgheni Poleacov (zendmania) on 2011-07-18T14:34:18.000+0000

Pull request with fixes sent:

Posted by Evgheni Poleacov (zendmania) on 2011-07-20T09:00:11.000+0000

Fixed with: Commit 5d8296 Commit 3194b0

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.