Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions security/login_link.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,23 @@ intercept requests to this route:
throw new \LogicException('This code should never be reached');
}
}

.. 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('/login_check', name: 'login_check')]
public function check()
{
throw new \LogicException('This code should never be reached');
}
}

.. code-block:: yaml

Expand Down