Skip to content

Conversation

@chalasr
Copy link
Member

@chalasr 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

@chalasr chalasr added this to the 3.4 milestone Oct 19, 2017
@chalasr chalasr force-pushed the web-server-register-commands branch 7 times, most recently from 2a02280 to 3a374e4 Compare October 19, 2017 17:03
{
public function registerCommands(Application $application)
{
// noop
Copy link
Member

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.

Copy link
Member Author

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

@chalasr chalasr force-pushed the web-server-register-commands branch from 3a374e4 to 4cdbff5 Compare October 19, 2017 17:29
{
public function registerCommands(Application $application)
{
// prevents convention based registration of console commands as they are registered as services
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

indeed, useless. reverted

@chalasr chalasr force-pushed the web-server-register-commands branch from 4cdbff5 to 57b7d83 Compare October 19, 2017 17:45
@fabpot
Copy link
Member

fabpot commented Oct 19, 2017

Thank you @chalasr.

@fabpot fabpot merged commit 57b7d83 into symfony:3.4 Oct 19, 2017
fabpot added a commit that referenced this pull request Oct 19, 2017
…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
@chalasr chalasr deleted the web-server-register-commands branch October 19, 2017 18:49
This was referenced Oct 30, 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