File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,10 @@ Disable Commands inside Listeners
6060Using the
6161:method: `Symfony\\ Component\\ Console\\ Event\\ ConsoleCommandEvent::disableCommand `
6262method, you can disable a command inside a listener. The application
63- will then not execute the command but return the code `113 ` (defined in
64- ``ConsoleCommandEvent::RETURN_CODE_DISABLED ``), which is one of the
65- `reserved exit codes `_ for console commands to conform with the C/C++ standard.::
63+ will then *not * execute the command, but instead will return the code ``113 ``
64+ (defined in ``ConsoleCommandEvent::RETURN_CODE_DISABLED ``). This code is one
65+ of the `reserved exit codes `_ for console commands that conform with the
66+ C/C++ standard.::
6667
6768 use Symfony\Component\Console\Event\ConsoleCommandEvent;
6869 use Symfony\Component\Console\ConsoleEvents;
@@ -83,8 +84,6 @@ will then not execute the command but return the code `113` (defined in
8384 }
8485 });
8586
86- .. _`reserved exit codes` : http://www.tldp.org/LDP/abs/html/exitcodes.html
87-
8887The ``ConsoleEvents::TERMINATE `` Event
8988--------------------------------------
9089
@@ -153,3 +152,4 @@ Listeners receive a
153152 $event->setException(new \LogicException('Caught exception', $exitCode, $event->getException()));
154153 });
155154
155+ .. _`reserved exit codes` : http://www.tldp.org/LDP/abs/html/exitcodes.html
You can’t perform that action at this time.
0 commit comments