Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] Add event subscriber aliases for DeauthenticatedEvent and LogoutEvent in SecurityEvents #40596

Closed
@Adambean

Description

@Adambean

I noticed that Symfony\Component\Security\Http\SecurityEvents only supports the InteractiveLoginEvent and SwitchUserEvent events.

It would be rather splendid if support could be added to DeauthenticatedEvent and LogoutEvent (with suggested aliases "security.deauthenticate" and "security.logout" respectively) so they could be picked up by an event subscriber instead of needing separate event listeners.

I could happily submit a PR for this, but I'd have thought there must be a reason for not including these events to date? (Seems like it would have been obvious to have included at the time of building SecurityEvents.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions