diff --git a/app/code/Magento/Developer/Console/Command/DiInfoCommand.php b/app/code/Magento/Developer/Console/Command/DiInfoCommand.php index 2235aa5e5d9df..75d9e56e1196e 100644 --- a/app/code/Magento/Developer/Console/Command/DiInfoCommand.php +++ b/app/code/Magento/Developer/Console/Command/DiInfoCommand.php @@ -9,22 +9,22 @@ use Magento\Developer\Model\Di\Information; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Exception\InvalidArgumentException; +use Symfony\Component\Console\Helper\Table; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; -use Symfony\Component\Console\Input\InputArgument; -use Symfony\Component\Console\Helper\Table; class DiInfoCommand extends Command { /** * Command name */ - const COMMAND_NAME = 'dev:di:info'; + public const COMMAND_NAME = 'dev:di:info'; /** * input name */ - const CLASS_NAME = 'class'; + public const CLASS_NAME = 'class'; /** * @var Information @@ -42,7 +42,8 @@ public function __construct( } /** - * {@inheritdoc} + * Initialization of the command + * * @throws InvalidArgumentException */ protected function configure() @@ -93,7 +94,7 @@ private function printConstructorArguments($className, $output) $paramsTableArray[] = $parameterRow; } $paramsTable->setRows($paramsTableArray); - $output->writeln($paramsTable->render()); + $paramsTable->render(); } /** @@ -142,12 +143,14 @@ private function printPlugins($className, $output, $label) ->setHeaders(['Plugin', 'Method', 'Type']) ->setRows($parameters); - $output->writeln($table->render()); + $table->render(); } /** - * {@inheritdoc} - * @throws \InvalidArgumentException + * Displays dependency injection configuration information for a class. + * + * @param InputInterface $input + * @param OutputInterface $output */ protected function execute(InputInterface $input, OutputInterface $output) {