Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Console] pass command name automatically if required by the application #8626

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

Closed
wants to merge 1 commit into from

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Aug 1, 2013

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

// set the command name automatically if the application requires
// this argument and no command name was passed
$application = $this->command->getApplication();
if ($application != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be null !== $application to match CS.

@xabbuh
Copy link
Member Author

xabbuh commented Aug 2, 2013

Thanks for your feedback, @stloyd. I modified the PR accordingly.

// this argument and no command name was passed
if (!isset($input['command'])) {
$application = $this->command->getApplication();
if ($application !== null) {
Copy link
Member

Choose a reason for hiding this comment

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

it should be null !== $application

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.

3 participants