Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9792ab4

Browse files
Merge branch '6.0' into 6.1
* 6.0: [HttpKernel] Fix empty request stack when terminating with exception [HttpKernel] Remove EOL when using error_log() in HttpKernel Logger [HttpClient] Add test case for seeking into the content of RetryableHttpClient responses [HttpClient] Fix buffering after calling AsyncContext::passthru() s/annd/and s/gargage/garbage [Console] Fix error output on windows cli Reserve keys when using numeric ones add missing Azerbaijani translations fix few typos/inconsistencies in latvian translations Fix TypeError in Router when using UrlGenerator [Messenger] Fix amqp socket lost fix: use message object from event
2 parents 7fa3b9c + ca45723 commit 9792ab4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

Application.php

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function doRun(InputInterface $input, OutputInterface $output)
276276
$alternative = $alternatives[0];
277277

278278
$style = new SymfonyStyle($input, $output);
279-
$style->block(sprintf("\nCommand \"%s\" is not defined.\n", $name), null, 'error');
279+
$style->block(sprintf('Command "%s" is not defined.', $name), null, 'error', ' ', true);
280280
if (!$style->confirm(sprintf('Do you want to run "%s" instead? ', $alternative), false)) {
281281
if (null !== $this->dispatcher) {
282282
$event = new ConsoleErrorEvent($input, $output, $e);
@@ -907,11 +907,21 @@ protected function configureIO(InputInterface $input, OutputInterface $output)
907907
}
908908

909909
switch ($shellVerbosity = (int) getenv('SHELL_VERBOSITY')) {
910-
case -1: $output->setVerbosity(OutputInterface::VERBOSITY_QUIET); break;
911-
case 1: $output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE); break;
912-
case 2: $output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE); break;
913-
case 3: $output->setVerbosity(OutputInterface::VERBOSITY_DEBUG); break;
914-
default: $shellVerbosity = 0; break;
910+
case -1:
911+
$output->setVerbosity(OutputInterface::VERBOSITY_QUIET);
912+
break;
913+
case 1:
914+
$output->setVerbosity(OutputInterface::VERBOSITY_VERBOSE);
915+
break;
916+
case 2:
917+
$output->setVerbosity(OutputInterface::VERBOSITY_VERY_VERBOSE);
918+
break;
919+
case 3:
920+
$output->setVerbosity(OutputInterface::VERBOSITY_DEBUG);
921+
break;
922+
default:
923+
$shellVerbosity = 0;
924+
break;
915925
}
916926

917927
if (true === $input->hasParameterOption(['--quiet', '-q'], true)) {

0 commit comments

Comments
 (0)