Skip to content

Commit 489fd07

Browse files
committed
feature symfony#22708 Adding autowire alias for AuthenticationUtils (weaverryan)
This PR was merged into the 3.3-dev branch. Discussion ---------- Adding autowire alias for AuthenticationUtils | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | none AuthenticationUtils is a public service (used commonly in your `loginAction`), 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. Commits ------- fe40cb2 Adding autowire alias for AuthenticationUtils
2 parents 50729d5 + fe40cb2 commit 489fd07

File tree

1 file changed

+1
-0
lines changed
  • src/Symfony/Bundle/SecurityBundle/Resources/config

1 file changed

+1
-0
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/config/security.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<service id="security.authentication_utils" class="Symfony\Component\Security\Http\Authentication\AuthenticationUtils" public="true">
6969
<argument type="service" id="request_stack" />
7070
</service>
71+
<service id="Symfony\Component\Security\Http\Authentication\AuthenticationUtils" alias="security.authentication_utils" />
7172

7273
<!-- Authorization related services -->
7374
<service id="security.access.decision_manager" class="Symfony\Component\Security\Core\Authorization\AccessDecisionManager">

0 commit comments

Comments
 (0)