vendor/zely/security-bundle/src/AuthenticationEntryPoint.php line 10
<?php
namespace Zely\Security;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Security\Core\Exception\AuthenticationException;
use Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface;
class AuthenticationEntryPoint implements AuthenticationEntryPointInterface
{
public function __construct() {
}
public function start(Request $request, AuthenticationException $authException = null): JsonResponse
{
return new JsonResponse(["code" => 401], 401);
}
}