| 1 | <?php |
||
| 16 | class UserContextInvalidator |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Service used to ban hash request. |
||
| 20 | * |
||
| 21 | * @var BanCapable |
||
| 22 | */ |
||
| 23 | private $banner; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Accept header. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | private $acceptHeader; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * User identifier headers. |
||
| 34 | * |
||
| 35 | * @var string[] |
||
| 36 | */ |
||
| 37 | private $userIdentifierHeaders; |
||
| 38 | |||
| 39 | 2 | public function __construct(BanCapable $banner, $userIdentifierHeaders, $acceptHeader) |
|
| 45 | |||
| 46 | /** |
||
| 47 | * Invalidate the user context hash. |
||
| 48 | * |
||
| 49 | * @param string $sessionId |
||
| 50 | */ |
||
| 51 | 1 | public function invalidateContext($sessionId) |
|
| 60 | } |
||
| 61 |