|
|
@@ -0,0 +1,20 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace App\Controller;
|
|
|
+
|
|
|
+use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
|
|
+use Symfony\Component\HttpFoundation\Response;
|
|
|
+use Symfony\Component\Routing\Annotation\Route;
|
|
|
+
|
|
|
+class DisconnectController extends AbstractController
|
|
|
+{
|
|
|
+ #[Route('/disconnect', name: 'disconnect')]
|
|
|
+ public function index(): Response
|
|
|
+ {
|
|
|
+ $session = $this->get('session');
|
|
|
+ $session->clear();
|
|
|
+ return $this->render('disconnect/index.html.twig', [
|
|
|
+ 'controller_name' => 'DisconnectController',
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+}
|