We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4ec619a + 1d1e77c commit 860f814Copy full SHA for 860f814
components/console/events.rst
@@ -106,6 +106,8 @@ Listeners receive a
106
$dispatcher->addListener(ConsoleEvents::EXCEPTION, function (ConsoleForExceptionEvent $event) {
107
$output = $event->getOutput();
108
109
+ $command = $event->getCommand();
110
+
111
$output->writeln(sprintf('Oops, exception thrown while running command <info>%s</info>', $command->getName()));
112
113
// get the current exit code (the exception code or the exit code set by a ConsoleEvents::TERMINATE event)
0 commit comments