Skip to content

Commit 1e06011

Browse files
committed
feedback
1 parent 8c8df16 commit 1e06011

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

console/commands_as_services.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,5 +133,5 @@ only when the ``app:sunshine`` command is actually called.
133133
.. caution::
134134

135135
Calling the ``list`` command will instantiate all commands, including lazy commands.
136-
However, if the command is a `Symfony\Component\Console\Command\LazyCommand`, then
136+
However, if the command is a ``Symfony\Component\Console\Command\LazyCommand``, then
137137
the underlying command factory will not be executed.

console/lazy_commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ which will be responsible for returning ``Command`` instances::
2626
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
2727

2828
$commandLoader = new FactoryCommandLoader([
29-
// Note that the `list` command will still still instantiate that command
29+
// Note that the `list` command will still instantiate that command
3030
// in this example.
3131
'app:heavy' => static fn(): Command => new HeavyCommand(),
3232
]);
@@ -54,7 +54,7 @@ Another way to do so is to take advantage of ``Symfony\Component\Console\Command
5454

5555
// In this case although the command is instantiated, the underlying command factory
5656
// will not be executed unless the command is actually executed or one tries to access
57-
// to its input definition.
57+
// to its input definition to know its argument or option inputs.
5858
$lazyCommand = new LazyCommand(
5959
'app:heavy',
6060
[],

0 commit comments

Comments
 (0)