@@ 91-97 (lines=7) @@ | ||
88 | ||
89 | // Purge whole cache |
|
90 | if ($request->headers->has(self::DEFAULT_PURGE_ALL_HEADER)) { |
|
91 | if (!$store instanceof Psr6StoreInterface) { |
|
92 | $response->setStatusCode(400); |
|
93 | $response->setContent('Store must be an instance of '.Psr6StoreInterface::class.'. Please check your proxy configuration.'); |
|
94 | $event->setResponse($response); |
|
95 | ||
96 | return; |
|
97 | } |
|
98 | ||
99 | $store->prune(); |
|
100 |
@@ 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'); |