vendor/zely/security-bundle/src/AuthenticationEntryPoint.php line 10

  1. <?php
  2. namespace Zely\Security;
  3. use Symfony\Component\HttpFoundation\JsonResponse;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\Security\Core\Exception\AuthenticationException;
  6. use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
  7. class AuthenticationEntryPoint implements AuthenticationEntryPointInterface
  8. {
  9.     public function __construct() {
  10.     }
  11.     public function start(Request $requestAuthenticationException $authException null): JsonResponse
  12.     {
  13.         return new JsonResponse(["code" => 401], 401);
  14.     }
  15. }