| @@ -36,8 +36,7 @@ | ||
| 36 | 36 | private $cache; | 
| 37 | 37 | |
| 38 | 38 | /** | 
| 39 | - * @param Client $client The http client | |
| 40 | - * @param Cache $cache The Doctrine Cache interface | |
| 39 | + * @param RestClient $client The http client | |
| 41 | 40 | */ | 
| 42 | 41 | public function __construct(RestClient $client) | 
| 43 | 42 |      { | 
| @@ -8,17 +8,8 @@ | ||
| 8 | 8 | |
| 9 | 9 | namespace Tristanbes\MyPoseoBundle\Api; | 
| 10 | 10 | |
| 11 | -use Http\Client\Common\PluginClient; | |
| 12 | -use Http\Client\HttpClient; | |
| 13 | 11 | use Doctrine\Common\Cache\Cache; | 
| 14 | -use Http\Discovery\MessageFactoryDiscovery; | |
| 15 | -use Http\Message\Authentication\QueryParam; | |
| 16 | -use Http\Client\Common\Plugin\AuthenticationPlugin; | |
| 17 | - | |
| 18 | -use Psr\Http\Message\RequestInterface; | |
| 19 | -use Psr\Http\Message\ResponseInterface; | |
| 20 | 12 | use Tristanbes\MyPoseoBundle\Connection\RestClient; | 
| 21 | -use Tristanbes\MyPoseoBundle\Exception\NotEnoughCreditsException; | |
| 22 | 13 | |
| 23 | 14 | /** | 
| 24 | 15 | * @see http://fr.myposeo.com/nos-api/api-search/ | 
| @@ -88,9 +88,10 @@ | ||
| 88 | 88 | /** | 
| 89 | 89 | * Sends the API request if cache not hit | 
| 90 | 90 | * | 
| 91 | - * @param RequestInterface $request | |
| 92 | 91 | * @param string $cacheKey | 
| 93 | 92 | * @param integer $ttl | 
| 93 | + * @param string $method | |
| 94 | + * @param string $uri | |
| 94 | 95 | * | 
| 95 | 96 | * @throws NotEnoughCreditsException | 
| 96 | 97 | * | 
| @@ -15,7 +15,6 @@ | ||
| 15 | 15 | use Psr\Http\Message\ResponseInterface; | 
| 16 | 16 | use Http\Client\Common\Plugin\AuthenticationPlugin; | 
| 17 | 17 | use Http\Message\Authentication\QueryParam; | 
| 18 | - | |
| 19 | 18 | use Tristanbes\MyPoseoBundle\Exception\NotEnoughCreditsException; | 
| 20 | 19 | |
| 21 | 20 | /** |