12345678910111213141516 |
- <?php
- namespace App\Security;
- use Symfony\Component\HttpFoundation\RedirectResponse;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\Security\Core\Exception\AuthenticationException;
- use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
- class CustomEntryPoint implements AuthenticationEntryPointInterface
- {
- public function start(Request $request, ?AuthenticationException $authException = null): RedirectResponse
- {
- return new RedirectResponse('/login');
- }
- }
|