bug #25274 [Security] Adding a GuardAuthenticatorHandler alias (weaverryan)

This PR was submitted for the master branch but it was squashed and merged into the 3.4 branch instead (closes #25274).

Discussion
----------

[Security] Adding a GuardAuthenticatorHandler alias

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | kinda
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT
| Doc PR        | This feature is not currently documented

The `security.authentication.guard_handler` service *is* actually meant to be available for users to use. Specifically, the `authenticateUserAndHandleSuccess()` method is useful to auto-login the user after, for example, registration, but maintain all the behavior of a normal login (success behavior, trigger the login event).

So, it should have an autowiring alias.

Commits
-------

844c402171 [Security] Adding a GuardAuthenticatorHandler alias
This commit is contained in:
Fabien Potencier 2017-12-04 10:49:12 -08:00
commit 4ae47e0fd4

View File

@ -13,6 +13,8 @@
<argument type="service" id="security.token_storage" />
<argument type="service" id="event_dispatcher" on-invalid="null" />
</service>
<service id="Symfony\Component\Security\Guard\GuardAuthenticatorHandler" alias="security.authentication.guard_handler" />
<!-- See GuardAuthenticationFactory -->
<service id="security.authentication.provider.guard"