Skip to content

Commit cf1cd12

Browse files
[Console] add SignalableCommandInterface link
Add SignalableCommandInterface link & return hint for handleSignal
1 parent 9e11eea commit cf1cd12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/events.rst

Lines changed: 2 additions & 2 deletions
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)