Category: symfony-eventdispatcher

Symfony 5 security.interactive_login event not called

I want to use the security.interactive_login event to update my User’s last login field. The event is successfully registered: php bin/console debug:event-dispatcher security.interactive_login Registered Listeners for "security.interactive_login" Event =========================================================== ——- ———————————————————————— ———- Order Callable Priority ——- ———————————————————————— ———- #1 AppEventSubscriberUserLocaleSubscriber::onSecurityInteractiveLogin()…

Symfony onKernelRequest headers->set dont received on @Route

I have functionm onKernelRequest when i want to add some custom header(in my case api=true||$request->headers->set(‘api’, “true”)) and in all Request $request i can get that header but when i try it on annotation its fail: onKernelRequest: public function onKernelRequest(RequestEvent $event)…