Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/service locator #665

wants to merge 9 commits into
base: master

Discard ServiceLocatorRepository::injectOn() method

  • Loading branch information...
falkenhawk committed Apr 30, 2019
commit 99305d209d98430a05970b24a5710d65739aa9e7
@@ -48,21 +48,6 @@ public function create(string $entry, array $services = [], $overwrite = false)
return $this->locators[$entry];
* Inject service locator on an ServiceSubscriber instance.
* @param ServiceSubscriberInterface $instance
* @param null $entry
* @return $this
public function injectOn(ServiceSubscriberInterface $instance, $entry = null)
$entry = $entry ?? get_class($instance);
$serviceLocator = $this->create($entry, $instance->getSubscribedServices());
return $this;
* Modify a single entry for a service locator.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.