SSO #1
|
|
@ -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.');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue