1 | <?php |
||
16 | class UserContextInvalidator |
||
17 | { |
||
18 | const USER_CONTEXT_TAG_PREFIX = 'fos_http_cache_hashlookup-'; |
||
19 | |||
20 | /** |
||
21 | * @var TagCapable |
||
22 | */ |
||
23 | private $tagger; |
||
24 | |||
25 | 4 | public function __construct(TagCapable $tagger) |
|
29 | |||
30 | /** |
||
31 | * Invalidate the user context hash. |
||
32 | * |
||
33 | * @param string $sessionId |
||
34 | */ |
||
35 | 1 | public function invalidateContext($sessionId) |
|
39 | |||
40 | 2 | public static function buildTag($hash) |
|
44 | } |
||
45 |