Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
29 | public function createClient(array $config = []) |
||
30 | { |
||
31 | if (!class_exists('Http\Adapter\Guzzle5\Client')) { |
||
32 | throw new \LogicException('To use the Guzzle5 adapter you need to install the "php-http/guzzle5-adapter" package.'); |
||
33 | } |
||
34 | |||
35 | $client = new Client($config); |
||
36 | |||
37 | return new Adapter($client, $this->messageFactory); |
||
38 | } |
||
39 | } |
||
40 |