Replace AuthenticationEvents::AUTHENTICATION_FAILURE by LoginFailureEvent

This commit is contained in:
Yassine Guedidi
2025-04-01 23:35:40 +02:00
parent c50265c1eb
commit 1127b147c0
2 changed files with 7 additions and 14 deletions

View File

@ -5,7 +5,7 @@ namespace Wallabag\Event\Listener;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Security\Core\AuthenticationEvents;
use Symfony\Component\Security\Http\Event\LoginFailureEvent;
class AuthenticationFailureListener implements EventSubscriberInterface
{
@ -21,7 +21,7 @@ class AuthenticationFailureListener implements EventSubscriberInterface
public static function getSubscribedEvents(): array
{
return [
AuthenticationEvents::AUTHENTICATION_FAILURE => 'onAuthenticationFailure',
LoginFailureEvent::class => 'onAuthenticationFailure',
];
}