From a90bcf409129f3840e3e56c419d22228cbe54fe8 Mon Sep 17 00:00:00 2001 From: Laurent VOULLEMIER Date: Mon, 11 May 2020 18:57:57 +0200 Subject: [PATCH] Update events.rst The exit code can't come from the terminate event since terminate is dispatched after the error event --- components/console/events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/console/events.rst b/components/console/events.rst index fa83e10189c..ae8aa494c29 100644 --- a/components/console/events.rst +++ b/components/console/events.rst @@ -122,7 +122,7 @@ Listeners receive a $output->writeln(sprintf('Oops, exception thrown while running command %s', $command->getName())); - // gets the current exit code (the exception code or the exit code set by a ConsoleEvents::TERMINATE event) + // gets the current exit code (the exception code) $exitCode = $event->getExitCode(); // changes the exception to another one