@@ -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 | /** |
@@ -48,7 +48,6 @@ |
||
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | 50 | * @param ManagerInterface $tagManager |
| 51 | - * @param mixed $options |
|
| 52 | 51 | */ |
| 53 | 52 | public function __construct(ManagerInterface $tagManager) |
| 54 | 53 | { |
@@ -4,10 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
| 6 | 6 | use FOS\HttpCache\Tag\ManagerInterface; |
| 7 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
| 8 | -use Symfony\Component\HttpFoundation\Request; |
|
| 9 | 7 | use Symfony\Component\HttpFoundation\HeaderBag; |
| 10 | -use Symfony\Component\HttpFoundation\JsonResponse; |
|
| 11 | 8 | use Symfony\Component\HttpFoundation\Response; |
| 12 | 9 | use FOS\HttpCache\ProxyClient\Symfony; |
| 13 | 10 | |
@@ -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. |