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

Adding autowire alias for AuthenticationUtils#22701

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

Closed
weaverryan wants to merge1 commit intomasterfromweaverryan-patch-1

Conversation

@weaverryan
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsnone
LicenseMIT
Doc PRnone

AuthenticationUtils is a public service (used commonly in yourloginAction), so it should be autowireable.

We might need to do a full audio of public services to add aliases. Since we're moving in the direction of type-based autowiring, these aliases are sort of the new "public" - it's the list of things you're "supposed" to use.

<serviceid="security.authentication_utils"class="Symfony\Component\Security\Http\Authentication\AuthenticationUtils"public="true">
<argumenttype="service"id="request_stack" />
</service>
<serviceid="Symfony\Component\Security\Http\Authentication\AuthenticationUtils"alias="security.authentication_utils" />

Choose a reason for hiding this comment

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

The alias should be private (that's how all the other ones are)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Thanks to you - itis private :). This file has<defaults public="false" />

ogizanagi reacted with laugh emoji

Choose a reason for hiding this comment

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

Haha indeed :)

@weaverryan
Copy link
MemberAuthor

See#22708

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

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@weaverryan@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp