This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Description
I'm trying to do something like this:
$config1 = [
'factories`=> [
// factories
],
'lazy_services' => [
'class_map' => [
'Foo' => 'Foo',
],
],
];
$config2 = [
'factories`=> [
// factories
],
'lazy_services' => [
'class_map' => [
'Foo' => 'Foo',
],
],
];
$container = new ServiceManager($config1);
$container->configure($config2);
This will result on internal lazy_services property the following:
$this->lazy_services = [
'class_map' => [
'Foo' => [
'Foo',
'Foo',
],
].
];
The problem is the use of array_merge_recursive() function in this line.
Same problem with delegators property.
I found this issue using zend-mvc and an already configured container, then Zend\ModuleManager\Listener\ServiceListener reconfigure it adding configuration from ModuleManager features.