Skip to content

Commit

Permalink
dev:di:info error
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerdz authored and glo17720 committed Jun 5, 2024
1 parent bb798fe commit c6d91bd
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions app/code/Magento/Developer/Console/Command/DiInfoCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -42,7 +42,8 @@ public function __construct(
}

/**
* {@inheritdoc}
* Initialization of the command
*
* @throws InvalidArgumentException
*/
protected function configure()
Expand Down Expand Up @@ -93,7 +94,7 @@ private function printConstructorArguments($className, $output)
$paramsTableArray[] = $parameterRow;
}
$paramsTable->setRows($paramsTableArray);
$output->writeln($paramsTable->render());
$paramsTable->render();
}

/**
Expand Down Expand Up @@ -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)
{
Expand Down

0 comments on commit c6d91bd

Please sign in to comment.