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

[DependencyInjection] Add#[AutowireLocator] attribute#18775

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

Conversation

@alexandre-daubois
Copy link
Member

Copy link
Member

@kbondkbond left a comment

Choose a reason for hiding this comment

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

Thanks for this@alexandre-daubois!

alexandre-daubois reacted with hooray emoji
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
use Symfony\Contracts\Service\ServiceSubscriberInterface;

class CommandBus implements ServiceSubscriberInterface
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
class CommandBus implements ServiceSubscriberInterface
class CommandBus

This should be removed, correct? (Same with below)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Indeed! That's updated 🙂

use App\CommandHandler\FooHandler;
use Psr\Container\ContainerInterface;
use Symfony\Component\DependencyInjection\Attribute\AutowireLocator;
use Symfony\Contracts\Service\ServiceSubscriberInterface;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
use Symfony\Contracts\Service\ServiceSubscriberInterface;

}

Just like with the ``getSubscribedServices()`` method, it is possible
to define aliased services thanks to named argument, as well as optional

Choose a reason for hiding this comment

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

Suggested change
to define aliased services thanks to namedargument, as well as optional
to define aliased services thanks to namedarguments, as well as optional

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Updated, thanks 🙂

Copy link
Member

@nicolas-grekasnicolas-grekas left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@javiereguiluz
Copy link
Member

Another nice new feature and another perfect contribution. Thanks Alex ... and thanks to reviewers too!

@javiereguiluzjaviereguiluz merged commit3a2d65b intosymfony:6.4Aug 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas left review comments

+1 more reviewer

@kbondkbondkbond approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.4

Development

Successfully merging this pull request may close these issues.

[DependencyInjection] add#[AutowireLocator] attribute

5 participants

@alexandre-daubois@javiereguiluz@kbond@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp