@@ -7,13 +7,13 @@ How to Make Commands Lazily Loaded
77.. note ::
88
99 If you are using the Symfony full-stack framework, you are probably looking for
10- :ref: `lazy loading of commands defined as services <console-command-service-lazy-loading >`
10+ details about :ref: `creating lazy commands <console-command-service-lazy-loading >`
1111
1212The traditional way of adding commands to your application is to use
13- :method: `Symfony\\ Component\\ Console\\ Application::add ` which expects a
14- ``Command `` instance as argument.
13+ :method: `Symfony\\ Component\\ Console\\ Application::add `, which expects a
14+ ``Command `` instance as an argument.
1515
16- In order to lazy load commands, you need to register an intermediate loader
16+ In order to lazy- load commands, you need to register an intermediate loader
1717which will be responsible for returning ``Command `` instances::
1818
1919 use AppBundle\Command\HeavyCommand;
@@ -46,7 +46,7 @@ Built-in Command Loaders
4646
4747The :class: `Symfony\\ Component\\ Console\\ CommandLoader\\ FactoryCommandLoader `
4848class provides a simple way of getting commands lazily loaded as it takes an
49- array of ``Command `` factories as only constructor argument::
49+ array of ``Command `` factories as its only constructor argument::
5050
5151 use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
5252
@@ -64,8 +64,8 @@ is called.
6464
6565The :class: `Symfony\\ Component\\ Console\\ CommandLoader\\ ContainerCommandLoader `
6666class can be used to load commands from a PSR-11 container. As such, its
67- constructor takes a PSR-11 ``ContainerInterface `` implementation as first
68- argument and a command map as last argument. The command map must be an array
67+ constructor takes a PSR-11 ``ContainerInterface `` implementation as its first
68+ argument and a command map as its last argument. The command map must be an array
6969with command names as keys and service identifiers as values::
7070
7171 use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
0 commit comments