ZF2-36: Multiple brokers initialization


If we have broker customization with next config:

resource_broker.class = "ZendTest\Application\TestAsset\ResourceBroker"
resource_broker.options.enabled = true

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


application broker would be overwritten by new instance of broker.

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

$options = $this->_options;

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


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.

Yes, this bug happens on current master too.

Pull request with fixes sent:

Fixed with: Commit 5d8296 Commit 3194b0