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

Throw an ServiceNotFoundException in AbstractPluginManager when the invokable does not exist. #6902

Closed
wants to merge 3 commits into from

Conversation

macnibblet
Copy link
Contributor

Mimic the same behaviour in the AbstractPluginManager::createFromInvokable as in the ServiceManager::createFromInvokable.

This could have been resolved by adding a check in the ServiceManager::setInvokable but that could potentially break a lot of peoples modules when they register optional invokables for extensions that are not loaded.

@macnibblet
Copy link
Contributor Author

The error is not related to this PR

@Ocramius Ocramius self-assigned this Nov 19, 2014
@Ocramius Ocramius added this to the 2.3.4 milestone Nov 19, 2014
@Ocramius Ocramius closed this in cb897ed Nov 19, 2014
Ocramius added a commit that referenced this pull request Nov 19, 2014
…ct-non-existing-classes' into develop

Close #6902
Forward port #6902
@Ocramius
Copy link
Member

@macnibblet thanks! Merged:

master: cb897ed
develop: 4d71ab6

gianarb pushed a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-servicemanager that referenced this pull request May 15, 2015
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.

2 participants