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->getBootstrap()->setOptions(array('test'=>true));
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: https://github.com/zendframework/zf2/pull/249
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.