Skip to content

Commit 236dd82

Browse files
committed
Oskar's Review
1 parent 4a417f1 commit 236dd82

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/console/events.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ method::
209209
for these constants to be available.
210210

211211
If you use the Console component inside a Symfony application, commands can
212-
handle signals themselves. To do so, subscribe to :class:`Symfony\\Component\\Console\\Event\\ConsoleSignalEvent` event::
212+
handle signals themselves by subscribing to the :class:`Symfony\\Component\\Console\\Event\\ConsoleSignalEvent` event::
213213

214214
// src/Command/MyCommand.php
215215
namespace App\Command;
@@ -232,7 +232,7 @@ handle signals themselves. To do so, subscribe to :class:`Symfony\\Component\\Co
232232

233233
// ...
234234

235-
// return an integer to set the exit code, or
235+
// set an integer exit code, or
236236
// false to continue normal execution
237237
$event->setExitCode(0);
238238
}

console.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Commands are defined in classes, for example, you may want a command to create a
143143
}
144144
}
145145

146-
Additionally, can extend the :class:`Symfony\\Component\\Console\\Command\\Command` class to
146+
Additionally, you can extend the :class:`Symfony\\Component\\Console\\Command\\Command` class to
147147
leverage advanced features like lifecycle hooks: :method:`Symfony\\Component\\Console\\Command\\Command::initialize`,
148148
:method:`Symfony\\Component\\Console\\Command\\Command::interact`, and built-in helpers.
149149

0 commit comments

Comments
 (0)