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

Skip to content

Commit 57f7e98

Browse files
DanielFatkicweaverryan
authored andcommitted
corrected console exception event classname
1 parent e55f0f7 commit 57f7e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/console/events.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ event is dispatched. A listener can wrap or change the exception or do
9898
anything useful before the exception is thrown by the application.
9999

100100
Listeners receive a
101-
:class:`Symfony\\Component\\Console\\Event\\ConsoleForExceptionEvent` event::
101+
:class:`Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent` event::
102102

103-
use Symfony\Component\Console\Event\ConsoleForExceptionEvent;
103+
use Symfony\Component\Console\Event\ConsoleExceptionEvent;
104104
use Symfony\Component\Console\ConsoleEvents;
105105

106-
$dispatcher->addListener(ConsoleEvents::EXCEPTION, function (ConsoleForExceptionEvent $event) {
106+
$dispatcher->addListener(ConsoleEvents::EXCEPTION, function (ConsoleExceptionEvent $event) {
107107
$output = $event->getOutput();
108108

109109
$command = $event->getCommand();

0 commit comments

Comments
 (0)