Skip to content

Commit ea1965e

Browse files
committed
minor symfony#17172 [Console] add SignalableCommandInterface link (mohamedGasmii)
This PR was merged into the 5.4 branch. Discussion ---------- [Console] add SignalableCommandInterface link Add SignalableCommandInterface link & return hint for handleSignal <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- cf1cd12 [Console] add SignalableCommandInterface link
2 parents b3b7da5 + cf1cd12 commit ea1965e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/events.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ Listeners receive a
190190

191191
If you use the Console component inside a Symfony application, commands can
192192
handle signals themselves. To do so, implement the
193-
``SignalableCommandInterface`` and subscribe to one or more signals::
193+
:class:`Symfony\\Component\\Console\\Command\\SignalableCommandInterface` and subscribe to one or more signals::
194194

195195
// src/Command/SomeCommand.php
196196
namespace App\Command;
@@ -208,7 +208,7 @@ handle signals themselves. To do so, implement the
208208
return [\SIGINT, \SIGTERM];
209209
}
210210

211-
public function handleSignal(int $signal)
211+
public function handleSignal(int $signal): void
212212
{
213213
if (\SIGINT === $signal) {
214214
// ...

0 commit comments

Comments
 (0)