From d9c5102fd6a903f1bfa994e947178fb3ab1c37e4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 14 Mar 2011 14:23:39 +0100 Subject: [PATCH] [FrameworkBundle] miror changes to container:debug --- .../FrameworkBundle/Command/ContainerDebugCommand.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php index b91a20cc6d..0195ff4648 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php @@ -30,7 +30,7 @@ class ContainerDebugCommand extends Command /** * @var \Symfony\Component\DependencyInjection\ContainerBuilder */ - protected $containerBuilder; + private $containerBuilder; /** * @see Command @@ -135,7 +135,7 @@ EOF $output->writeln(sprintf($format, $serviceId, $definition->getScope(), $definition->getClass())); } elseif ($definition instanceof Alias) { $alias = $definition; - $output->writeln(sprintf($format, $serviceId, sprintf('--> Alias for service %s', (string) $alias), '')); + $output->writeln(sprintf($format, $serviceId, 'n/a', sprintf('alias for %s', (string) $alias))); } else { // we have no information (happens with "service_container") $service = $definition; @@ -159,12 +159,12 @@ EOF $output->writeln(sprintf('Service Id %s', $serviceId)); $output->writeln(sprintf('Class %s', $definition->getClass())); - $tags = $definition->getTags() ? implode(', ', array_keys($definition->getTags())) : 'no tags'; + $tags = $definition->getTags() ? implode(', ', array_keys($definition->getTags())) : '-'; $output->writeln(sprintf('Tags %s', $tags)); $output->writeln(sprintf('Scope %s', $definition->getScope())); - $public = $definition->isPublic() ? 'public' : 'private'; + $public = $definition->isPublic() ? 'yes' : 'no'; $output->writeln(sprintf('Public %s', $public)); } elseif ($definition instanceof Alias) { $alias = $definition;