Skip to content

syntax tweaks #19332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions console/lazy_commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ The traditional way of adding commands to your application is to use

This approach can have downsides as some commands might be expensive to
instantiate in which case you may want to lazy-load them. Note however that lazy-loading
is not absolute. Indeed a few commands such as `list`, `help` or `_complete` can
require to instantiate other commands although they are lazy. For example `list` needs
is not absolute. Indeed a few commands such as ``list``, ``help`` or ``_complete`` can
require to instantiate other commands although they are lazy. For example ``list`` needs
to get the name and description of all commands, which might require the command to be
instantiated to get.

Expand Down Expand Up @@ -54,7 +54,7 @@ Another way to do so is to take advantage of ``Symfony\Component\Console\Command

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