| 1 | <?php |
||
| 15 | class EtagHasher implements EtagHasherInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | const ETAG_SEPARATOR = '|'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var RequestStack |
||
| 24 | */ |
||
| 25 | protected $request_stack; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $algorithm = ''; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param RequestStack $request_stack |
||
| 34 | * @param string $algorithm |
||
| 35 | */ |
||
| 36 | 3 | public function __construct(RequestStack $request_stack, $algorithm) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * @param Response $response |
||
| 44 | * |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | 3 | public function hash(Response $response) |
|
| 60 | } |
||
| 61 |