Skip to content

Commit e9f0345

Browse files
authored
Merge pull request doctrine#11966 from greg0ire/partial-revert-10162-2
Partially revert to stdout
2 parents fe5f8bb + 0feb09d commit e9f0345

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)