11
11
12
12
namespace Symfony \Bundle \FrameworkBundle \Console \Descriptor ;
13
13
14
- use Symfony \Component \Console \Helper \TableHelper ;
14
+ use Symfony \Component \Console \Helper \Table ;
15
15
use Symfony \Component \DependencyInjection \Alias ;
16
16
use Symfony \Component \DependencyInjection \ContainerBuilder ;
17
17
use Symfony \Component \DependencyInjection \Definition ;
@@ -31,8 +31,8 @@ protected function describeRouteCollection(RouteCollection $routes, array $optio
31
31
{
32
32
$ showControllers = isset ($ options ['show_controllers ' ]) && $ options ['show_controllers ' ];
33
33
$ headers = array ('Name ' , 'Method ' , 'Scheme ' , 'Host ' , 'Path ' );
34
- $ table = new TableHelper ( );
35
- $ table ->setLayout (TableHelper:: LAYOUT_COMPACT );
34
+ $ table = new Table ( $ this -> getOutput () );
35
+ $ table ->setStyle ( ' compact ' );
36
36
$ table ->setHeaders ($ showControllers ? array_merge ($ headers , array ('Controller ' )) : $ headers );
37
37
38
38
foreach ($ routes ->all () as $ name => $ route ) {
@@ -99,8 +99,8 @@ protected function describeRoute(Route $route, array $options = array())
99
99
*/
100
100
protected function describeContainerParameters (ParameterBag $ parameters , array $ options = array ())
101
101
{
102
- $ table = new TableHelper ( );
103
- $ table ->setLayout (TableHelper:: LAYOUT_COMPACT );
102
+ $ table = new Table ( $ this -> getOutput () );
103
+ $ table ->setStyle ( ' compact ' );
104
104
$ table ->setHeaders (array ('Parameter ' , 'Value ' ));
105
105
106
106
foreach ($ this ->sortParameters ($ parameters ) as $ parameter => $ value ) {
@@ -200,8 +200,8 @@ protected function describeContainerServices(ContainerBuilder $builder, array $o
200
200
$ tagsCount = count ($ maxTags );
201
201
$ tagsNames = array_keys ($ maxTags );
202
202
203
- $ table = new TableHelper ( );
204
- $ table ->setLayout (TableHelper:: LAYOUT_COMPACT );
203
+ $ table = new Table ( $ this -> getOutput () );
204
+ $ table ->setStyle ( ' compact ' );
205
205
$ table ->setHeaders (array_merge (array ('Service ID ' ), $ tagsNames , array ('Scope ' , 'Class name ' )));
206
206
207
207
foreach ($ this ->sortServiceIds ($ serviceIds ) as $ serviceId ) {
0 commit comments