vendor/symfony/src/Symfony/Component/Security/Http/Session/SessionAuthenticationStrategyInterface.php
changeset 0 7f95f8617b0b
equal deleted inserted replaced
-1:000000000000 0:7f95f8617b0b
       
     1 <?php
       
     2 
       
     3 /*
       
     4  * This file is part of the Symfony framework.
       
     5  *
       
     6  * (c) Fabien Potencier <fabien@symfony.com>
       
     7  *
       
     8  * This source file is subject to the MIT license that is bundled
       
     9  * with this source code in the file LICENSE.
       
    10  */
       
    11 
       
    12 namespace Symfony\Component\Security\Http\Session;
       
    13 
       
    14 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
       
    15 use Symfony\Component\HttpFoundation\Request;
       
    16 
       
    17 /**
       
    18  * SessionAuthenticationStrategyInterface
       
    19  *
       
    20  * Implementation are responsible for updating the session after an interactive
       
    21  * authentication attempt was successful.
       
    22  *
       
    23  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
       
    24  */
       
    25 interface SessionAuthenticationStrategyInterface
       
    26 {
       
    27     /**
       
    28      * This performs any necessary changes to the session.
       
    29      *
       
    30      * This method is called before the SecurityContext is populated with a
       
    31      * Token, and only by classes inheriting from AbstractAuthenticationListener.
       
    32      *
       
    33      * @param Request        $request
       
    34      * @param TokenInterface $token
       
    35      *
       
    36      * @return void
       
    37      */
       
    38     function onAuthentication(Request $request, TokenInterface $token);
       
    39 }