Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev:di:info error #38747

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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