class AuthenticationListener implements EventSubscriberInterface

Class to listen to authentication event

Properties

private EntityManagerInterface $em Stores EntityManagerInterface
private TokenStorageInterface $tokenStorage Stores TokenStorageInterface
private Request $request Stores current Request

Methods

__construct(EntityManagerInterface $em, RequestStack $requestStack, TokenStorageInterface $tokenStorage)

No description

static 
getSubscribedEvents()

Defines subscribed events

onSecurityInteractiveLogin(InteractiveLoginEvent $event)

Adds data to user entity and persists

Details

at line 49
__construct(EntityManagerInterface $em, RequestStack $requestStack, TokenStorageInterface $tokenStorage)

Parameters

EntityManagerInterface $em
RequestStack $requestStack
TokenStorageInterface $tokenStorage

at line 63
static getSubscribedEvents()

Defines subscribed events

at line 73
onSecurityInteractiveLogin(InteractiveLoginEvent $event)

Adds data to user entity and persists

Parameters

InteractiveLoginEvent $event