-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix delegators config with Mvc\Application #6266
Fix delegators config with Mvc\Application #6266
Conversation
Yes it works for me. |
@blanchonvincent shouldn't the |
@Ocramius I was thinking about this, I think it can be a good way to reduce side effect |
@Ocramius done :) |
$this->shared = array_merge($this->shared, $configuration['shared']); | ||
} | ||
|
||
$configuration = array_replace_recursive(array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PSR-2 expects one parameter per line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not ArrayUtils::merge()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ArrayUtils::merge()
is needed, otherwise I think that some numeric keys would be overwritten.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the union operator +
should do the trick
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope: http://3v4l.org/1rl41
…own factory (allows for overrides)
…tor parameters
… as a service in itself
…s registered and initializes `ServiceManagerAwareInterface` objects
…s registered and initializes `ServiceLocatorAwareInterface` objects
…er` can be replaced
…er` can be replaced
…` can be replaced
@blanchonvincent I provided additional tests and functionality in blanchonvincent/zf2#1 |
…elegators Hotfix/#6266 mvc service config delegators
No clue why github keeps swallowing the diffs. The actual diff can be seen on the merge commit, and the merge graph is actually clean |
Delegators are missing in mvc service config.
@nbochenko @Ocramius Can you have a look? :)