Skip to content

Commit d4a7478

Browse files
committed
Merge remote-tracking branch 'origin/AC-11999' into spartans_pr_12062024
2 parents 9af8fe3 + c6d91bd commit d4a7478

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

app/code/Magento/Developer/Console/Command/DiInfoCommand.php

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@
99
use Magento\Developer\Model\Di\Information;
1010
use Symfony\Component\Console\Command\Command;
1111
use Symfony\Component\Console\Exception\InvalidArgumentException;
12+
use Symfony\Component\Console\Helper\Table;
13+
use Symfony\Component\Console\Input\InputArgument;
1214
use Symfony\Component\Console\Input\InputInterface;
1315
use Symfony\Component\Console\Output\OutputInterface;
14-
use Symfony\Component\Console\Input\InputArgument;
15-
use Symfony\Component\Console\Helper\Table;
1616

1717
class 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

Comments
 (0)