@@ -7,13 +7,13 @@ How to Make Commands Lazily Loaded
7
7
.. note ::
8
8
9
9
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 >`
11
11
12
12
The 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.
15
15
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
17
17
which will be responsible for returning ``Command `` instances::
18
18
19
19
use AppBundle\Command\HeavyCommand;
@@ -46,7 +46,7 @@ Built-in Command Loaders
46
46
47
47
The :class: `Symfony\\ Component\\ Console\\ CommandLoader\\ FactoryCommandLoader `
48
48
class 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::
50
50
51
51
use Symfony\Component\Console\CommandLoader\FactoryCommandLoader;
52
52
@@ -64,8 +64,8 @@ is called.
64
64
65
65
The :class: `Symfony\\ Component\\ Console\\ CommandLoader\\ ContainerCommandLoader `
66
66
class 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
69
69
with command names as keys and service identifiers as values::
70
70
71
71
use Symfony\Component\Console\CommandLoader\ContainerCommandLoader;
0 commit comments