ZF2-255: Loss of module DI injections in ConfigListener::mergeTraversableConfig
Description
Replace of two modules configs removed DI injections
First module.config.php:
'Zend\Translator\Translator' => [
'injections' => [
'arx-account-translator'
]
],
Second module.config.php:
'Zend\Translator\Translator' => [
'injections' => [
'arx-user-translator'
]
],
The expected result:
'Zend\Translator\Translator' => [
'injections' => [
0 => 'arx-user-translator',
1 => 'arx-account-translator',
]
],
Actual result: The expected result:
'Zend\Translator\Translator' => [
'injections' => [
0 => 'arx-account-translator',
]
],
This is example.
My solution:
Replace array_replace_recursive on ArrayUtils::merge in https://github.com/zendframework/zf2/…
P.S. If you do not need tests for this, I can pull this changes on github
Comments
Posted by Evan Coury (evan.pro) on 2012-04-13T10:16:44.000+0000
This has been resolved with PR 1040 and the unit tests have been updated to account for this behavior.