diff --git a/security.rst b/security.rst index fd1d6a4b96b..dfa6d7b0098 100644 --- a/security.rst +++ b/security.rst @@ -1650,24 +1650,6 @@ Next, you need to create a route for this URL (but not a controller): .. configuration-block:: - .. code-block:: php-attributes - - // src/Controller/SecurityController.php - namespace App\Controller; - - use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; - use Symfony\Component\Routing\Annotation\Route; - - class SecurityController extends AbstractController - { - #[Route('/logout', name: 'app_logout', methods: ['GET'])] - public function logout() - { - // controller can be blank: it will never be called! - throw new \Exception('Don\'t forget to activate logout in security.yaml'); - } - } - .. code-block:: yaml # config/routes.yaml