@@ 103-110 (lines=8) @@ | ||
100 | $response = new Response(); |
|
101 | $store = $event->getKernel()->getStore(); |
|
102 | ||
103 | if (!$store instanceof Psr6StoreInterface) { |
|
104 | $response->setStatusCode(400); |
|
105 | $response->setContent('Store must be an instance of '.Psr6StoreInterface::class.'. Please check your proxy configuration.'); |
|
106 | ||
107 | $event->setResponse($response); |
|
108 | ||
109 | return; |
|
110 | } |
|
111 | ||
112 | if (!$request->headers->has($this->tagsHeader)) { |
|
113 | $response->setStatusCode(200, 'Not found'); |
@@ 101-107 (lines=7) @@ | ||
98 | ||
99 | // Purge whole cache |
|
100 | if ($request->headers->has($this->clearCacheHeader)) { |
|
101 | if (!$store instanceof Psr6StoreInterface) { |
|
102 | $response->setStatusCode(400); |
|
103 | $response->setContent('Store must be an instance of '.Psr6StoreInterface::class.'. Please check your proxy configuration.'); |
|
104 | $event->setResponse($response); |
|
105 | ||
106 | return; |
|
107 | } |
|
108 | ||
109 | $store->prune(); |
|
110 |