Fix: Use correct constructor argument name
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user