Skip to content

[BUGFIX 2581] Ensure AnnotationRegistry::registerLoader is correctly …#2946

Merged
jmolivas merged 2 commits into
hechoendrupal:masterfrom
mickaelperrin:2581
Dec 1, 2016
Merged

[BUGFIX 2581] Ensure AnnotationRegistry::registerLoader is correctly …#2946
jmolivas merged 2 commits into
hechoendrupal:masterfrom
mickaelperrin:2581

Conversation

@mickaelperrin
Copy link
Copy Markdown
Contributor

…defined

Comment thread src/Application.php
->get('application.commands.aliases')?:[];

foreach ($consoleCommands as $name) {
// Some commands call AnnotationRegistry::reset, we need to ensure that
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@mickaelperrin why is this inside the commands iteration?

Copy link
Copy Markdown
Contributor Author

@mickaelperrin mickaelperrin Nov 18, 2016

Choose a reason for hiding this comment

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

@jmolivas As I said previously, while debugging, I discovered that the registration of some commands call AnnotationRegistry::reset. If we want to ensure, that the Annotation is correctly set, we must ensure it is correctly defined before the beginning of the registration of a new command.

@jmolivas jmolivas added this to the 1.0.0-rc11 milestone Dec 1, 2016
@jmolivas jmolivas merged commit 32f1851 into hechoendrupal:master Dec 1, 2016
@jmolivas
Copy link
Copy Markdown
Member

jmolivas commented Dec 1, 2016

@mickaelperrin Thanks for your contribution, your PR was merged. This will be included on the next release.

bpresles pushed a commit to bpresles/DrupalConsole that referenced this pull request Dec 11, 2016
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.

2 participants