99use Magento \Developer \Model \Di \Information ;
1010use Symfony \Component \Console \Command \Command ;
1111use Symfony \Component \Console \Exception \InvalidArgumentException ;
12+ use Symfony \Component \Console \Helper \Table ;
13+ use Symfony \Component \Console \Input \InputArgument ;
1214use Symfony \Component \Console \Input \InputInterface ;
1315use Symfony \Component \Console \Output \OutputInterface ;
14- use Symfony \Component \Console \Input \InputArgument ;
15- use Symfony \Component \Console \Helper \Table ;
1616
1717class DiInfoCommand extends Command
1818{
1919 /**
2020 * Command name
2121 */
22- const COMMAND_NAME = 'dev:di:info ' ;
22+ public const COMMAND_NAME = 'dev:di:info ' ;
2323
2424 /**
2525 * input name
2626 */
27- const CLASS_NAME = 'class ' ;
27+ public const CLASS_NAME = 'class ' ;
2828
2929 /**
3030 * @var Information
@@ -42,7 +42,8 @@ public function __construct(
4242 }
4343
4444 /**
45- * {@inheritdoc}
45+ * Initialization of the command
46+ *
4647 * @throws InvalidArgumentException
4748 */
4849 protected function configure ()
@@ -93,7 +94,7 @@ private function printConstructorArguments($className, $output)
9394 $ paramsTableArray [] = $ parameterRow ;
9495 }
9596 $ paramsTable ->setRows ($ paramsTableArray );
96- $ output -> writeln ( $ paramsTable ->render () );
97+ $ paramsTable ->render ();
9798 }
9899
99100 /**
@@ -142,12 +143,14 @@ private function printPlugins($className, $output, $label)
142143 ->setHeaders (['Plugin ' , 'Method ' , 'Type ' ])
143144 ->setRows ($ parameters );
144145
145- $ output -> writeln ( $ table ->render () );
146+ $ table ->render ();
146147 }
147148
148149 /**
149- * {@inheritdoc}
150- * @throws \InvalidArgumentException
150+ * Displays dependency injection configuration information for a class.
151+ *
152+ * @param InputInterface $input
153+ * @param OutputInterface $output
151154 */
152155 protected function execute (InputInterface $ input , OutputInterface $ output )
153156 {
0 commit comments