vendor/symfony/src/Symfony/Component/Security/Http/EntryPoint/AuthenticationEntryPointInterface.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony package.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * For the full copyright and license information, please view the LICENSE
       
     9  * file that was distributed with this source code.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Security\Http\EntryPoint;
       
    13 
       
    14 use Symfony\Component\Security\Core\Exception\AuthenticationException;
       
    15 use Symfony\Component\HttpFoundation\Request;
       
    16 
       
    17 /**
       
    18  * AuthenticationEntryPointInterface is the interface used to start the
       
    19  * authentication scheme.
       
    20  *
       
    21  * @author Fabien Potencier <fabien@symfony.com>
       
    22  */
       
    23 interface AuthenticationEntryPointInterface
       
    24 {
       
    25     /**
       
    26      * Starts the authentication scheme.
       
    27      *
       
    28      * @param Request                 $request       The request that resulted in an AuthenticationException
       
    29      * @param AuthenticationException $authException The exception that started the authentication process
       
    30      *
       
    31      * @return Response
       
    32      */
       
    33     function start(Request $request, AuthenticationException $authException = null);
       
    34 }