| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 37 | public function make(): ClientInterface |
||
| 38 | { |
||
| 39 | $stack = HandlerStack::create(); |
||
| 40 | $cacheStorage = new Psr6CacheStorage( |
||
| 41 | new FilesystemAdapter('ExchangeRatesApp', 0, '/tmp/') |
||
| 42 | ); |
||
| 43 | $privateCacheStrategy = new PrivateCacheStrategy($cacheStorage); |
||
| 44 | |||
| 45 | $stack->push(new CacheMiddleware($privateCacheStrategy), 'cache'); |
||
| 46 | |||
| 47 | return $this->guzzleFactory::make(['handler' => $stack]); |
||
| 48 | } |
||
| 50 |