File tree 1 file changed +5
-5
lines changed
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
60
60
Using the
61
61
:method: `Symfony\\ Component\\ Console\\ Event\\ ConsoleCommandEvent::disableCommand `
62
62
method, 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.::
66
67
67
68
use Symfony\Component\Console\Event\ConsoleCommandEvent;
68
69
use Symfony\Component\Console\ConsoleEvents;
@@ -83,8 +84,6 @@ will then not execute the command but return the code `113` (defined in
83
84
}
84
85
});
85
86
86
- .. _`reserved exit codes` : http://www.tldp.org/LDP/abs/html/exitcodes.html
87
-
88
87
The ``ConsoleEvents::TERMINATE `` Event
89
88
--------------------------------------
90
89
@@ -153,3 +152,4 @@ Listeners receive a
153
152
$event->setException(new \LogicException('Caught exception', $exitCode, $event->getException()));
154
153
});
155
154
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