浏览代码

[FrameworkBundle] miror changes to container:debug

Fabien Potencier 14 年之前
父节点
当前提交
d9c5102fd6
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

+ 4 - 4
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('<comment>--> Alias for service</comment> <info>%s</info>', (string) $alias), ''));
+                $output->writeln(sprintf($format, $serviceId, 'n/a', sprintf('<comment>alias for</comment> <info>%s</info>', (string) $alias)));
             } else {
                 // we have no information (happens with "service_container")
                 $service = $definition;
@@ -159,12 +159,12 @@ EOF
             $output->writeln(sprintf('<comment>Service Id</comment>   %s', $serviceId));
             $output->writeln(sprintf('<comment>Class</comment>        %s', $definition->getClass()));
 
-            $tags = $definition->getTags() ? implode(', ', array_keys($definition->getTags())) : '<comment>no tags</comment>';
+            $tags = $definition->getTags() ? implode(', ', array_keys($definition->getTags())) : '-';
             $output->writeln(sprintf('<comment>Tags</comment>         %s', $tags));
 
             $output->writeln(sprintf('<comment>Scope</comment>        %s', $definition->getScope()));
 
-            $public = $definition->isPublic() ? 'public' : 'private';
+            $public = $definition->isPublic() ? 'yes' : 'no';
             $output->writeln(sprintf('<comment>Public</comment>       %s', $public));
         } elseif ($definition instanceof Alias) {
             $alias = $definition;