Issues

ZF2-255: Loss of module DI injections in ConfigListener::mergeTraversableConfig

Issue Type: Bug Created: 2012-04-04T17:29:19.000+0000 Last Updated: 2012-04-13T10:16:44.000+0000 Status: Resolved Fix version(s): Reporter: Vasilii Sheredeko (piphon) Assignee: Evan Coury (evan.pro) Tags: - Zend\ModuleManager

  • configuration
  • modules

Related issues: Attachments:

Description

Replace of two modules configs removed DI injections

First module.config.php:

<pre class="highlight">
'Zend\Translator\Translator' => [
    'injections' => [
        'arx-account-translator'
    ]
],

Second module.config.php:

<pre class="highlight">
'Zend\Translator\Translator' => [
    'injections' => [
        'arx-user-translator'
    ]
],

The expected result:

<pre class="highlight">
'Zend\Translator\Translator' => [
    'injections' => [
        0 => 'arx-user-translator',
        1 => 'arx-account-translator',
    ]
],

Actual result: The expected result:

<pre class="highlight">
'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.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts