9
9
use Magento \Developer \Model \Di \Information ;
10
10
use Symfony \Component \Console \Command \Command ;
11
11
use Symfony \Component \Console \Exception \InvalidArgumentException ;
12
+ use Symfony \Component \Console \Helper \Table ;
13
+ use Symfony \Component \Console \Input \InputArgument ;
12
14
use Symfony \Component \Console \Input \InputInterface ;
13
15
use Symfony \Component \Console \Output \OutputInterface ;
14
- use Symfony \Component \Console \Input \InputArgument ;
15
- use Symfony \Component \Console \Helper \Table ;
16
16
17
17
class DiInfoCommand extends Command
18
18
{
19
19
/**
20
20
* Command name
21
21
*/
22
- const COMMAND_NAME = 'dev:di:info ' ;
22
+ public const COMMAND_NAME = 'dev:di:info ' ;
23
23
24
24
/**
25
25
* input name
26
26
*/
27
- const CLASS_NAME = 'class ' ;
27
+ public const CLASS_NAME = 'class ' ;
28
28
29
29
/**
30
30
* @var Information
@@ -42,7 +42,8 @@ public function __construct(
42
42
}
43
43
44
44
/**
45
- * {@inheritdoc}
45
+ * Initialization of the command
46
+ *
46
47
* @throws InvalidArgumentException
47
48
*/
48
49
protected function configure ()
@@ -93,7 +94,7 @@ private function printConstructorArguments($className, $output)
93
94
$ paramsTableArray [] = $ parameterRow ;
94
95
}
95
96
$ paramsTable ->setRows ($ paramsTableArray );
96
- $ output -> writeln ( $ paramsTable ->render () );
97
+ $ paramsTable ->render ();
97
98
}
98
99
99
100
/**
@@ -142,12 +143,14 @@ private function printPlugins($className, $output, $label)
142
143
->setHeaders (['Plugin ' , 'Method ' , 'Type ' ])
143
144
->setRows ($ parameters );
144
145
145
- $ output -> writeln ( $ table ->render () );
146
+ $ table ->render ();
146
147
}
147
148
148
149
/**
149
- * {@inheritdoc}
150
- * @throws \InvalidArgumentException
150
+ * Displays dependency injection configuration information for a class.
151
+ *
152
+ * @param InputInterface $input
153
+ * @param OutputInterface $output
151
154
*/
152
155
protected function execute (InputInterface $ input , OutputInterface $ output )
153
156
{
0 commit comments