Closed
Description
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
.)