Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Fix delegators config with Mvc\Application #6266

Merged
merged 1 commit into from
May 20, 2014
Merged

Fix delegators config with Mvc\Application #6266

merged 1 commit into from
May 20, 2014

Conversation

blanchonvincent
Copy link
Contributor

Delegators are missing in mvc service config.

@nbochenko @Ocramius Can you have a look? :)

@nbochenko
Copy link

Yes it works for me.

@Ocramius
Copy link
Member

@blanchonvincent shouldn't the Zend\Mvc\Service\ServiceManagerConfig maybe extend Zend\ServiceManager\Config?

@blanchonvincent
Copy link
Contributor Author

@Ocramius I was thinking about this, I think it can be a good way to reduce side effect

@blanchonvincent
Copy link
Contributor Author

@Ocramius done :)

$this->shared = array_merge($this->shared, $configuration['shared']);
}

$configuration = array_replace_recursive(array(
Copy link
Member

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not ArrayUtils::merge()?

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.

Copy link
Contributor

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
…s registered and initializes `ServiceManagerAwareInterface` objects
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
…s registered and initializes `ServiceLocatorAwareInterface` objects
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
Ocramius added a commit to Ocramius/zf2 that referenced this pull request May 20, 2014
@Ocramius
Copy link
Member

@blanchonvincent I provided additional tests and functionality in blanchonvincent/zf2#1

@Ocramius Ocramius self-assigned this May 20, 2014
@Ocramius Ocramius added this to the 2.3.2 milestone May 20, 2014
…elegators

Hotfix/#6266 mvc service config delegators
Ocramius added a commit that referenced this pull request May 20, 2014
@Ocramius Ocramius merged commit 9c73a80 into zendframework:master May 20, 2014
@Ocramius
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants