1 | <?php |
||
13 | class Security extends AbstractMiddleware |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $socketUrl; |
||
20 | |||
21 | /** |
||
22 | * @Inject("%socket.url%") |
||
23 | * @param $socketHost |
||
24 | */ |
||
25 | 2 | public function __construct(string $socketHost) |
|
29 | |||
30 | /** |
||
31 | * {@inheritdoc} |
||
32 | */ |
||
33 | 2 | public function processResponse(Request $request, Response $response) |
|
44 | |||
45 | /** |
||
46 | * @return string |
||
47 | */ |
||
48 | 1 | protected function getContentSecurityPolicy() : string |
|
58 | } |
||
59 |