marks filesystem definition as non-public when alias is defined

This commit is contained in:
Johannes Schmitt 2011-09-27 10:50:58 +02:00
parent 00a3fab9bc
commit f97f2be079

View File

@ -87,6 +87,7 @@ class KnpGaufretteExtension extends Extension
; ;
if (!empty($config['alias'])) { if (!empty($config['alias'])) {
$container->getDefinition($id)->setPublic(false);
$container->setAlias($config['alias'], $id); $container->setAlias($config['alias'], $id);
} }