Skip to content

Commit fe5961a

Browse files
committed
[FrameworkBundle] moved router:debug and container:debug to use the compact layout
1 parent bd16157 commit fe5961a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Descriptor/TextDescriptor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio
2323
$showControllers = isset($options['show_controllers']) && $options['show_controllers'];
2424
$headers = array('Name', 'Method', 'Scheme', 'Host', 'Path');
2525
$table = new TableHelper();
26+
$table->setLayout(TableHelper::LAYOUT_COMPACT);
2627
$table->setHeaders($showControllers ? array_merge($headers, array('Controller')) : $headers);
2728

2829
foreach ($routes->all() as $name => $route) {
@@ -90,6 +91,7 @@ protected function describeRoute(Route $route, array $options = array())
9091
protected function describeContainerParameters(ParameterBag $parameters, array $options = array())
9192
{
9293
$table = new TableHelper();
94+
$table->setLayout(TableHelper::LAYOUT_COMPACT);
9395
$table->setHeaders(array('Parameter', 'Value'));
9496

9597
foreach ($this->sortParameters($parameters) as $parameter => $value) {
@@ -190,6 +192,7 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
190192
$tagsNames = array_keys($maxTags);
191193

192194
$table = new TableHelper();
195+
$table->setLayout(TableHelper::LAYOUT_COMPACT);
193196
$table->setHeaders(array_merge(array('Service ID'), $tagsNames, array('Scope', 'Class name')));
194197

195198
foreach ($this->sortServiceIds($serviceIds) as $serviceId) {

0 commit comments

Comments
 (0)