-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[WebServerBundle] Prevent commands from being registered by convention #24630
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
Conversation
chalasr
commented
Oct 19, 2017
| Q | A |
|---|---|
| Branch? | 3.4 |
| Bug fix? | yes |
| New feature? | no |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets | #24629 |
| License | MIT |
| Doc PR | n/a |
2a02280 to
3a374e4
Compare
| { | ||
| public function registerCommands(Application $application) | ||
| { | ||
| // noop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may be technically correct, but it looks super strange, mostly because Symfony is always so explicit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be more explicit now
3a374e4 to
4cdbff5
Compare
| { | ||
| public function registerCommands(Application $application) | ||
| { | ||
| // prevents convention based registration of console commands as they are registered as services |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well, the existing logic already prevents it if they are defined as services
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, useless. reverted
4cdbff5 to
57b7d83
Compare
|
Thank you @chalasr. |
…y convention (chalasr) This PR was merged into the 3.4 branch. Discussion ---------- [WebServerBundle] Prevent commands from being registered by convention | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #24629 | License | MIT | Doc PR | n/a Commits ------- 57b7d83 [WebServerBundle] Prevent commands from being registered by convention