-
Notifications
You must be signed in to change notification settings - Fork 171
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
Make command lazily loaded #373
Conversation
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.
LGTM!
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.
Change LGTM 👍 but I had to change the target branch, so you should drop the additional commits from master.
Please also add a changelog entry too.
Sure, thanks ill rebase pr a bit later from the target branch. |
11471c0
to
5b2ef9c
Compare
5b2ef9c
to
784fdaa
Compare
Can you please rebase once more and fix the broken build (it should be enough to change the regex of the error message of PHPStan so that instead of hardcoding the version number uses a match pattern)? Also, in the CHANGELOG can you please add a reference to this PR? |
Sure. no problem. |
Thank you for your contribution! |
Hi there.
Since Symfony 3.4^ allows us to provide console command name for compile-time registration all console command should be registered by this way, if not
every time when someone run ./bin/console Symfony should compile all container to fetch command name and set parameter manually
Also here is a way to check if on your Symfony project some commands register not properly
Example output from my project now
we are using
"sentry/sentry-symfony": "^3.0" // 3.5.2
This is the simple fix which not breaking BC because BC layer already on \Symfony\Component\Console\Command\Command
Also here some ref where the same problem was fixed by this way
btw, I'm not sure about the target branch, should be 3.5 instead?