1 | <?php |
||
20 | class ContextInvalidationLogoutHandler implements LogoutHandlerInterface |
||
21 | { |
||
22 | /** |
||
23 | * Service used to ban hash request. |
||
24 | * |
||
25 | * @var \FOS\HttpCache\ProxyClient\Invalidation\BanCapable |
||
26 | */ |
||
27 | private $banner; |
||
28 | |||
29 | /** |
||
30 | * Accept header. |
||
31 | * |
||
32 | * @var string |
||
33 | */ |
||
34 | private $acceptHeader; |
||
35 | |||
36 | /** |
||
37 | * User identifier headers. |
||
38 | * |
||
39 | * @var string[] |
||
40 | */ |
||
41 | private $userIdentifierHeaders; |
||
42 | |||
43 | 1 | public function __construct(BanCapable $banner, $userIdentifierHeaders, $acceptHeader) |
|
49 | |||
50 | /** |
||
51 | * Invalidate the user context hash. |
||
52 | * |
||
53 | * @param Request $request |
||
54 | * @param Response $response |
||
55 | * @param TokenInterface $token |
||
56 | */ |
||
57 | public function logout(Request $request, Response $response, TokenInterface $token) |
||
68 | } |
||
69 |