1 | <?php |
||
16 | class CacheKeyBuilder |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | const IDENTIFIER_SEPARATOR = '|'; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | const IDENTIFIER_PREFIX = ':'; |
||
27 | |||
28 | /** |
||
29 | * @var EtagHasherInterface |
||
30 | */ |
||
31 | protected $etag_hasher; |
||
32 | |||
33 | /** |
||
34 | * @param EtagHasherInterface $etag_hasher |
||
35 | */ |
||
36 | 7 | public function __construct(EtagHasherInterface $etag_hasher) |
|
40 | |||
41 | /** |
||
42 | * @param object $entity |
||
43 | * @param EntityManagerInterface $em |
||
44 | * |
||
45 | * @return string|null |
||
46 | */ |
||
47 | 3 | public function getEntityAlias($entity, EntityManagerInterface $em) |
|
59 | |||
60 | /** |
||
61 | * @param object $entity |
||
62 | * @param EntityManagerInterface $em |
||
63 | * |
||
64 | * @return string|null |
||
65 | */ |
||
66 | 3 | public function getEntityIdentifier($entity, EntityManagerInterface $em) |
|
72 | |||
73 | /** |
||
74 | * @param Request $request |
||
75 | * @param Response $response |
||
76 | * |
||
77 | * @return string |
||
78 | */ |
||
79 | 1 | public function getEtag(Request $request, Response $response) |
|
83 | } |
||
84 |