Skip to content

Commit 0feb09d

Browse files
committed
Partially revert to stdout
This command's purpose is to provide structured data, except for a call to caution() that warns the user in case they do not have any mapped entities or they have errors.
1 parent fe5f8bb commit 0feb09d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tools/Console/Command/InfoCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected function configure()
3939

4040
private function doExecute(InputInterface $input, OutputInterface $output): int
4141
{
42-
$ui = (new SymfonyStyle($input, $output))->getErrorStyle();
42+
$ui = new SymfonyStyle($input, $output);
4343

4444
$entityManager = $this->getEntityManager($input);
4545

@@ -48,7 +48,7 @@ private function doExecute(InputInterface $input, OutputInterface $output): int
4848
->getAllClassNames();
4949

5050
if (! $entityClassNames) {
51-
$ui->caution(
51+
$ui->getErrorStyle()->caution(
5252
[
5353
'You do not have any mapped Doctrine ORM entities according to the current configuration.',
5454
'If you have entities or mapping files you should check your mapping configuration for errors.',

0 commit comments

Comments
 (0)