8000 [Console] Command lazy loading by chalasr · Pull Request #8502 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[Console] Command lazy loading #8502

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 3 commits into from
Oct 29, 2017
Merged

Conversation

chalasr
Copy link
Member
@chalasr chalasr commented Oct 10, 2017

Fixes #8147.
Any help regarding wording/formatting would be much appreciated as usual :)

$application->setCommandLoader($commandLoader);
$application->run();

This way, the ``HeavyCommand`` instance will be created only when the ``app:foo``
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app:heavy instead of app:foo?

'app:foo' => FooCommand::class,
));

Like this, executing the `app:foo` command will load the ``FooCommand`` service
Copy link
Member
@yceruto yceruto Oct 10, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double `` around of app:foo ?

@chalasr
Copy link
Member Author
chalasr commented Oct 11, 2017

@yceruto comments addressed, thanks!

@xabbuh xabbuh added this to the 3.4 milestone Oct 13, 2017

.. configuration-block::

.. code-block:: yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

must be indented by four spaces

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@javiereguiluz
Copy link
Member

@chalasr thanks for providing this feature and for documenting it. In a minor reword commit, I made this change:

-register an intermediate router ...
+register an intermediate loader ...

Please confirm that it's correct to use "loader" instead of "router". Thanks!

@chalasr
Copy link
Member Author
chalasr commented Oct 13, 2017

@javiereguiluz Absolutely correct, thank you for that and your other fixes.

@weaverryan weaverryan merged commit e2d445e into symfony:3.4 Oct 29, 2017
weaverryan added a commit that referenced this pull request Oct 29, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[Console] Command lazy loading

Fixes #8147.
Any help regarding wording/formatting would be much appreciated as usual :)

Commits
-------

e2d445e Minor rewords
a6aac8f Break long lines and add blank lines after RST directives
96461f8 Command lazy loading
weaverryan added a commit that referenced this pull request Oct 29, 2017
@weaverryan
Copy link
Member

Thanks @chalasr! Really great feature and accomplishment - congrats :)

@chalasr chalasr deleted the lazy-commands branch October 29, 2017 02:36
weaverryan added a commit that referenced this pull request Oct 29, 2017
* 3.4: (81 commits)
  Fixed a RST syntax issue
  Mention that ACL is deprecated in the security config reference
  Update questionhelper.rst
  Remove TableHelper Page
  [#8416] Minor tweaks
  Minor tweaks to #8502
  Documented the new config prototype shortcuts
  Document the new RequestExceptionInterface
  Docs re-org and removal of small sections
  Processed xabbuh comments
  Fixes
  Fixed a grammar issue
  remove deprecated feature description
  Fix a small typo error (number.rst)
  Remove deprecated proxy argument
  Fix instance of class in express language in DI
  Missing use reference
  Unused Private param in documentation
  Doctrine event listener could persist a null value
  Added about command in debug page
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0