vendor/symfony/src/Symfony/Component/Security/Http/Logout/LogoutHandlerInterface.php
equal
deleted
inserted
replaced
|
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\Logout; |
|
13 |
|
14 use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; |
|
15 use Symfony\Component\HttpFoundation\Response; |
|
16 use Symfony\Component\HttpFoundation\Request; |
|
17 |
|
18 /** |
|
19 * Interface that needs to be implemented by LogoutHandlers. |
|
20 * |
|
21 * @author Johannes M. Schmitt <schmittjoh@gmail.com> |
|
22 */ |
|
23 interface LogoutHandlerInterface |
|
24 { |
|
25 /** |
|
26 * This method is called by the LogoutListener when a user has requested |
|
27 * to be logged out. Usually, you would unset session variables, or remove |
|
28 * cookies, etc. |
|
29 * |
|
30 * @param Request $request |
|
31 * @param Response $response |
|
32 * @param TokenInterface $token |
|
33 * @return void |
|
34 */ |
|
35 function logout(Request $request, Response $response, TokenInterface $token); |
|
36 } |