@@ -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 | */ |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * Constructor |
47 | 47 | * |
48 | 48 | * @param array $servers |
49 | - * @param null $baseUri |
|
49 | + * @param string $baseUri |
|
50 | 50 | */ |
51 | 51 | public function __construct( |
52 | 52 | array $servers, |
@@ -60,6 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | /** |
62 | 62 | * {@inheritdoc} |
63 | + * @param string $baseUri |
|
63 | 64 | */ |
64 | 65 | public function __construct( |
65 | 66 | array $servers, |
@@ -190,6 +191,8 @@ discard block |
||
190 | 191 | * @throws MissingHostException If a relative path is queued for purge/ |
191 | 192 | * refresh and no base URL is set |
192 | 193 | * |
194 | + * @param string $method |
|
195 | + * @param string $url |
|
193 | 196 | */ |
194 | 197 | protected function queueRequest($method, $url, array $headers = []) |
195 | 198 | { |
@@ -18,7 +18,6 @@ |
||
18 | 18 | use FOS\HttpCache\ProxyClient\Invalidation\RefreshInterface; |
19 | 19 | use FOS\HttpCache\ProxyClient\Invalidation\TagsInterface; |
20 | 20 | use FOS\HttpCache\ProxyClient\Request\InvalidationRequest; |
21 | -use FOS\HttpCache\ProxyClient\Request\RequestQueue; |
|
22 | 21 | use Http\Adapter\HttpAdapter; |
23 | 22 | |
24 | 23 | /** |
@@ -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 | /** |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Http\Adapter\Exception\MultiHttpAdapterException; |
6 | 6 | use Http\Adapter\HttpAdapter; |
7 | -use GuzzleHttp\Psr7\Response; |
|
8 | 7 | use Http\Discovery\MessageFactoryDiscovery; |
9 | 8 | use Psr\Http\Message\RequestInterface; |
10 | 9 | use Psr\Http\Message\ResponseInterface; |
@@ -2,8 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace FOS\HttpCache\SymfonyCache\Tag; |
4 | 4 | |
5 | -use Symfony\Component\HttpFoundation\Request; |
|
6 | - |
|
7 | 5 | class RemotePurger |
8 | 6 | { |
9 | 7 | private $purgeUrls; |
@@ -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,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
6 | 6 | use FOS\HttpCache\SymfonyCache\Tag\ManagerInterface; |
7 | -use Symfony\Component\OptionsResolver\OptionsResolver; |
|
8 | 7 | use Symfony\Component\HttpFoundation\Request; |
9 | 8 | use Symfony\Component\HttpFoundation\HeaderBag; |
10 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |