Skip to content

[Console] Add a factory command loader for standalone application with lazy-loading needs #23510

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
Jul 19, 2017
Merged

[Console] Add a factory command loader for standalone application with lazy-loading needs #23510

merged 1 commit into from
Jul 19, 2017

Conversation

ogizanagi
Copy link
Contributor

@ogizanagi ogizanagi commented Jul 14, 2017

Q A
Branch? 3.4
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes (failure unrelated)
Fixed tickets #22734 (comment)
License MIT
Doc PR todo (with symfony/symfony-docs#8147)

So standalone applications can also benefit from the lazy loading feature without requiring a PSR-11 implementation specifically for this need.

The loader does not memoize any resolved command from factories, as it's the Application responsibility and the ContainerCommandLoader does not either (the PSR-11 does not enforce two successive calls to return the same value).

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

Can you add the missing changelog entry?

@xabbuh xabbuh added this to the 3.4 milestone Jul 15, 2017
@ogizanagi
Copy link
Contributor Author

Changelog entry updated

@chalasr
Copy link
Member

chalasr commented Jul 19, 2017

Thank you @ogizanagi.

@chalasr chalasr merged commit 9b40b4a into symfony:3.4 Jul 19, 2017
chalasr pushed a commit that referenced this pull request Jul 19, 2017
…application with lazy-loading needs (ogizanagi)

This PR was merged into the 3.4 branch.

Discussion
----------

[Console] Add a factory command loader for standalone application with lazy-loading needs

| Q             | A
| ------------- | ---
| Branch?       | 3.4 <!-- see comment below -->
| Bug fix?      | no
| New feature?  | yes <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes (failure unrelated)
| Fixed tickets | #22734 (comment) <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | todo (with symfony/symfony-docs#8147)

So standalone applications can also benefit from the lazy loading feature without requiring a PSR-11 implementation specifically for this need.

The loader does not memoize any resolved command from factories, as it's the `Application` responsibility and the `ContainerCommandLoader` does not either (the PSR-11 does not enforce two successive calls to return the same value).

Commits
-------

9b40b4a [Console] Add a factory command loader for standalone application with lazy-loading needs
@ogizanagi ogizanagi deleted the feature/console/factory_loader branch July 19, 2017 13:18
This was referenced Oct 18, 2017
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.

6 participants