8000 [Console] fixed 10531 by nacmartin · Pull Request #13309 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Console] fixed 10531 #13309

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
Jan 25, 2015
Merged

[Console] fixed 10531 #13309

merged 1 commit into from
Jan 25, 2015

Conversation

nacmartin
Copy link
Contributor
Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #10531
License MIT
Doc PR -

This is a fix for #10531. It works by extracting all the parent namespaces of a command.

@@ -469,10 +469,10 @@ public function getNamespaces()
{
$namespaces = array();
foreach ($this->commands as $command) {
$namespaces[] = $this->extractNamespace($command->getName());
$namespaces = array_merge($namespaces, $this->extractAllNamespaces($command->getName()));
Copy link
Contributor

Choose a reason for hiding this comment

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

array_merge is not necessary here

$namespaces = $this->extractAllNamespaces($command->getName());

Copy link
Member

Choose a reason for hiding this comment

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

it is because of the loop

Copy link
Contributor

Choose a reason for hiding this comment

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

right

@nacmartin
Copy link
Contributor Author

After the review I have added, as asked, a comment, and changed double quotes for single quotes here. Changes commited and squashed.

@javiereguiluz
Copy link
Member

👍 nice work @nacmartin ... and thanks for the patience going through the commit review process!

@fabpot fabpot added the Console label Jan 16, 2015
@stof
Copy link
Member
stof commented Jan 18, 2015

OK, 👍

@fabpot
Copy link
Member
fabpot commented Jan 25, 2015

Thank you @nacmartin.

@fabpot fabpot merged commit e6afff4 into symfony:2.3 Jan 25, 2015
fabpot added a commit that referenced this pull request Jan 25, 2015
This PR was merged into the 2.3 branch.

Discussion
----------

[Console] fixed 10531

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #10531
| License       | MIT
| Doc PR        | -

This is a fix for #10531. It works by extracting all the parent namespaces of a command.

Commits
-------

e6afff4 [Console] fixed #10531
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants
0