PHP Class Sulu\Bundle\SecurityBundle\Security\AuthenticationEntryPoint

Returns a 401 status code for the API, and redirects to the login page for other requests.
Inheritance: implements Symfony\Component\Security\Http\EntryPoint\AuthenticationEntryPointInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator )
start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null )

Method Details

__construct() public method

public __construct ( Symfony\Component\Routing\Generator\UrlGeneratorInterface $urlGenerator )
$urlGenerator Symfony\Component\Routing\Generator\UrlGeneratorInterface

start() public method

public start ( Request $request, Symfony\Component\Security\Core\Exception\AuthenticationException $authException = null )
$request Symfony\Component\HttpFoundation\Request
$authException Symfony\Component\Security\Core\Exception\AuthenticationException