From f97f2be079ff70bd4429b078b867bc95dc5d2afd Mon Sep 17 00:00:00 2001 From: Johannes Schmitt Date: Tue, 27 Sep 2011 10:50:58 +0200 Subject: [PATCH] marks filesystem definition as non-public when alias is defined --- DependencyInjection/KnpGaufretteExtension.php | 1 + 1 file changed, 1 insertion(+) diff --git a/DependencyInjection/KnpGaufretteExtension.php b/DependencyInjection/KnpGaufretteExtension.php index a0c7134..39e9d47 100644 --- a/DependencyInjection/KnpGaufretteExtension.php +++ b/DependencyInjection/KnpGaufretteExtension.php @@ -87,6 +87,7 @@ class KnpGaufretteExtension extends Extension ; if (!empty($config['alias'])) { + $container->getDefinition($id)->setPublic(false); $container->setAlias($config['alias'], $id); }