Refactor( logout subscriber)

This commit is contained in:
Charles 2025-07-04 11:13:42 +02:00
parent 974c4a0cc3
commit 903013e306
1 changed files with 0 additions and 25 deletions

View File

@ -1,25 +0,0 @@
<?php
namespace App\EventSubscriber;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
class LogoutSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents(): array
{
return [
'kernel.response' => 'onKernelResponse',
];
}
public function onKernelResponse($event): void
{
// // This method can be used to perform actions after a logout response is sent.
// // For example, you could log the logout event or clear session data.
//
//// Example: Log the logout event
// $logger = $this->container->get('logger');
// $logger->info('User logged out successfully.');
}
}