Applied rector rules up to symfony 6.2

This commit is contained in:
Jan Böhmer 2023-05-28 01:21:05 +02:00
parent 88ea920dfb
commit a43af180a7
145 changed files with 563 additions and 889 deletions

View file

@ -30,7 +30,7 @@ use Symfony\Component\Security\Http\Event\LogoutEvent;
/**
* This handler logs to event log, if a user logs out.
*/
class LogoutLoggerListener
class LogoutLoggerEventSubscriber implements \Symfony\Component\EventDispatcher\EventSubscriberInterface
{
protected EventLogger $logger;
protected bool $gpdr_compliance;
@ -58,4 +58,11 @@ class LogoutLoggerListener
$this->logger->logAndFlush($log);
}
/**
* @return array<string, mixed>
*/
public static function getSubscribedEvents(): array
{
return [\Symfony\Component\Security\Http\Event\LogoutEvent::class => ''];
}
}