@@ -34,7 +34,7 @@ |
||
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * @param string $server Invalid server |
| 37 | - * @param array $allowed Allowed URL parts |
|
| 37 | + * @param string[] $allowed Allowed URL parts |
|
| 38 | 38 | * |
| 39 | 39 | * @return self |
| 40 | 40 | */ |
@@ -76,7 +76,7 @@ |
||
| 76 | 76 | * Events that occur after the response is created provide the default response. |
| 77 | 77 | * Event listeners can also set the response to make it available here. |
| 78 | 78 | * |
| 79 | - * @return Response|null The response if one was set. |
|
| 79 | + * @return Response The response if one was set. |
|
| 80 | 80 | */ |
| 81 | 81 | public function getResponse() |
| 82 | 82 | { |
@@ -11,11 +11,8 @@ |
||
| 11 | 11 | |
| 12 | 12 | namespace FOS\HttpCache\SymfonyCache; |
| 13 | 13 | |
| 14 | -use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
| 15 | -use Symfony\Component\HttpFoundation\Request; |
|
| 16 | 14 | use Symfony\Component\HttpFoundation\RequestMatcher; |
| 17 | 15 | use Symfony\Component\HttpFoundation\Response; |
| 18 | -use Symfony\Component\HttpKernel\HttpKernelInterface; |
|
| 19 | 16 | use Symfony\Component\OptionsResolver\OptionsResolver; |
| 20 | 17 | |
| 21 | 18 | /** |
@@ -179,6 +179,8 @@ |
||
| 179 | 179 | * @throws MissingHostException If a relative path is queued for purge/ |
| 180 | 180 | * refresh and no base URL is set |
| 181 | 181 | * |
| 182 | + * @param string $method |
|
| 183 | + * @param string $url |
|
| 182 | 184 | */ |
| 183 | 185 | protected function queueRequest($method, $url, array $headers = []) |
| 184 | 186 | { |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | use FOS\HttpCache\ProxyClient\Invalidation\PurgeInterface; |
| 18 | 18 | use FOS\HttpCache\ProxyClient\Invalidation\RefreshInterface; |
| 19 | 19 | use FOS\HttpCache\ProxyClient\Invalidation\TagsInterface; |
| 20 | -use Http\Message\MessageFactory; |
|
| 21 | 20 | |
| 22 | 21 | /** |
| 23 | 22 | * Varnish HTTP cache invalidator. |