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

Commit

Permalink
Merge branch 'hotfix/3947'
Browse files Browse the repository at this point in the history
  • Loading branch information
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServiceManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function setInvokableClass($name, $invokableClass, $shared = null)
if ($this->allowOverride === false) {
throw new Exception\InvalidServiceNameException(sprintf(
'A service by the name or alias "%s" already exists and cannot be overridden; please use an alternate name',
$cName
$name
));
}
$this->unregisterService($cName);
Expand Down Expand Up @@ -266,7 +266,7 @@ public function setFactory($name, $factory, $shared = null)
if ($this->allowOverride === false) {
throw new Exception\InvalidServiceNameException(sprintf(
'A service by the name or alias "%s" already exists and cannot be overridden, please use an alternate name',
$cName
$name
));
}
$this->unregisterService($cName);
Expand Down

0 comments on commit 44d8daf

Please sign in to comment.