Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Console] Ensure overridingCommand::execute() keeps priority over__invoke()#60361

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
chalasr merged 1 commit intosymfony:7.3fromGromNaN:command-exec
May 6, 2025

Conversation

GromNaN
Copy link
Member

QA
Branch?7.3
Bug fix?yes
New feature?no
Deprecations?no
IssuesReplace#60353
LicenseMIT

Implements#60353 (comment)

Copy link
Member

@ycerutoyceruto left a comment

Choose a reason for hiding this comment

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

Thanks Jérôme!

@chalasr
Copy link
Member

Thank you@GromNaN.

@chalasrchalasr merged commited0a235 intosymfony:7.3May 6, 2025
9 of 11 checks passed
@GromNaNGromNaN deleted the command-exec branchMay 6, 2025 14:09
};

$command->run(new ArrayInput([]), new NullOutput());
$this->assertSame('execute', $command->called);
Copy link
Contributor

Choose a reason for hiding this comment

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

This tests only if it was called, but in theory the other method could be called before

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Only it was thelast called. I assumed that was enough to cover the feature.

OskarStark reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

But priority means it should be the first called method, right?

Copy link
Member

Choose a reason for hiding this comment

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

In practice, only one of them can be called by Command::run()

@fabpotfabpot mentioned this pull requestMay 10, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@OskarStarkOskarStarkOskarStark left review comments

@ycerutoycerutoyceruto approved these changes

@xabbuhxabbuhxabbuh approved these changes

@chalasrchalasrchalasr approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
7.3
Development

Successfully merging this pull request may close these issues.

6 participants
@GromNaN@chalasr@OskarStark@xabbuh@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp