Improve error message for undefined DIC aliases
This commit is contained in:
parent
d9b8d0c1e9
commit
9195cd3e44
@ -45,7 +45,7 @@ class ReplaceAliasByActualDefinitionPass implements CompilerPassInterface
|
|||||||
try {
|
try {
|
||||||
$definition = $container->getDefinition($aliasId);
|
$definition = $container->getDefinition($aliasId);
|
||||||
} catch (InvalidArgumentException $e) {
|
} catch (InvalidArgumentException $e) {
|
||||||
throw new InvalidArgumentException(sprintf('Unable to replace alias "%s" with "%s".', $alias, $id), null, $e);
|
throw new InvalidArgumentException(sprintf('Unable to replace alias "%s" with actual definition "%s".', $id, $alias), null, $e);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($definition->isPublic()) {
|
if ($definition->isPublic()) {
|
||||||
|
Reference in New Issue
Block a user