Total Complexity | 3 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | abstract class AbstractNamingStrategy implements NamingStrategyInterface |
||
9 | { |
||
10 | private $blacklist = [ |
||
11 | 'User-Agent', |
||
12 | 'Host', |
||
13 | CacheMiddleware::DEBUG_HEADER, |
||
14 | ]; |
||
15 | |||
16 | public function __construct(array $blacklist = []) |
||
17 | { |
||
18 | if (!empty($blacklist)) { |
||
19 | $this->blacklist = $blacklist; |
||
20 | } |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * Generates a fingerprint from a given request. |
||
25 | * |
||
26 | * @param RequestInterface $request |
||
27 | * |
||
28 | * @return string |
||
29 | */ |
||
30 | protected function getFingerprint(RequestInterface $request) |
||
40 | ])); |
||
41 | } |
||
42 | } |