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.