diff --git a/src/Core/Injector/Injector.php b/src/Core/Injector/Injector.php index 6b3f28abd..8b68f5aef 100644 --- a/src/Core/Injector/Injector.php +++ b/src/Core/Injector/Injector.php @@ -929,6 +929,11 @@ class Injector implements ContainerInterface */ protected function getNamedService($name, $asSingleton = true, $constructorArgs = []) { + // Allow service names of the form "%$ServiceName" + if (substr($name, 0, 2) == '%$') { + $name = substr($name, 2); + } + // Normalise service / args list($name, $constructorArgs) = $this->normaliseArguments($name, $constructorArgs);