vendor/symfony/src/Symfony/Component/Security/Http/Logout/LogoutSuccessHandlerInterface.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\Logout;
       
    13 
       
    14 use Symfony\Component\HttpFoundation\Request;
       
    15 use Symfony\Component\HttpKernel\Event\GetResponseEvent;
       
    16 
       
    17 /**
       
    18  * LogoutSuccesshandlerInterface.
       
    19  *
       
    20  * In contrast to the LogoutHandlerInterface, this interface can return a response
       
    21  * which is then used instead of the default behavior.
       
    22  *
       
    23  * If you want to only perform some logout related clean-up task, use the
       
    24  * LogoutHandlerInterface instead.
       
    25  *
       
    26  * @author Johannes M. Schmitt <schmittjoh@gmail.com>
       
    27  */
       
    28 interface LogoutSuccessHandlerInterface
       
    29 {
       
    30     /**
       
    31      * Creates a Response object to send upon a successful logout.
       
    32      *
       
    33      * @param Request $request
       
    34      * @return Response never null
       
    35      */
       
    36     function onLogoutSuccess(Request $request);
       
    37 }