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] Add support for method-based commands#62567

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

Open
yceruto wants to merge1 commit intosymfony:8.1
base:8.1
Choose a base branch
Loading
fromyceruto:method_based_command

Conversation

@yceruto
Copy link
Member

QA
Branch?8.1
Bug fix?no
New feature?yes
Deprecations?no
Issues-
LicenseMIT

Same as with Controllers and Messenger Handlers, this would allow defining multiple commands in the same class:

class MultiCommand{publicfunction__construct(// common dependencies ...    ) {    }    #[AsCommand('app:cmd1')]publicfunctioncmd1():int    {// ...    }    #[AsCommand('app:cmd2')]publicfunctioncmd2():int    {// ...    }}

Asked by@kbond in#59340 (review)

  • add tests

kbond and javiereguiluz reacted with heart emojibkosun reacted with rocket emoji
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chalasrchalasrAwaiting requested review from chalasrchalasr is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

8.1

Development

Successfully merging this pull request may close these issues.

2 participants

@yceruto@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp