I need to perform a set of actions after a user successfully logs in. This includes loading data from the database and storing it in the session.
What is the best ap
You can even fetch the user instance from the event itself, no need to inject the token storage!
public function onSecurityInteractiveLogin(InteractiveLoginEvent $event) { $event->getAuthenticationToken()->getUser() }