Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5d43069

Browse filesBrowse files
committed
[#4058] Minor language and formatting tweaks (moving the link reference to the bottom)
1 parent 2270fd1 commit 5d43069
Copy full SHA for 5d43069

File tree

Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-5
lines changed

‎components/console/events.rst

Copy file name to clipboardExpand all lines: components/console/events.rst
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,10 @@ Disable Commands inside Listeners
6060
Using the
6161
:method:`Symfony\\Component\\Console\\Event\\ConsoleCommandEvent::disableCommand`
6262
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.::
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-
8887
The ``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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.