Skip to content

Commit 5d43069

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/console/events.rst

+5-5
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)