Fix: Use correct constructor argument name

This commit is contained in:
Björn Fromme
2023-10-20 17:40:17 +02:00
parent b29960075d
commit b54504a446
+2 -4
View File
@@ -7,7 +7,7 @@ use Symfony\Component\Security\Http\Event\LogoutEvent;
class LogoutListener
{
public function __construct(private readonly LoggerInterface $authenticationLogger)
public function __construct(private readonly LoggerInterface $logger)
{
}
@@ -17,8 +17,6 @@ class LogoutListener
return;
}
$this->authenticationLogger->info('Logout', [
'user' => $event->getToken()->getUserIdentifier(),
]);
$this->logger->info('Logout');
}
}