8000 [HttpKernel] instantiate valid commands only by havvg · Pull Request #8182 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[HttpKernel] instantiate valid commands only #8182

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
Jun 4, 2013

Conversation

havvg
Copy link
Contributor
@havvg havvg commented Jun 3, 2013
Q A
Bug fix? yes
New feature? debatable ..
BC breaks? no
Deprecations? no
Tests pass? yes
License MIT

This skips the default behavior to instantiate Command that cannot simply be instantiated. The respective commands have to be registered by other means.

{
public function __construct($example, $name = 'bar')
{

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe adding a comment which states that this is not a valid command and therefore should be skipped by the Kernel?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

fabpot added a commit that referenced this pull request Jun 4, 2013
This PR was merged into the 2.2 branch.

Discussion
----------

[HttpKernel] instantiate valid commands only

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | debatable ..
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT

This skips the default behavior to instantiate `Command` that cannot simply be instantiated. The respective commands have to be registered by other means.

Commits
-------

afad9c7 instantiate valid commands only
@fabpot fabpot merged commit afad9c7 into symfony:2.2 Jun 4, 2013
@havvg havvg deleted the hotfix/fix-bundle-command-instantiation branch June 4, 2013 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0