Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function createClient(array $config = []) |
||
18 | { |
||
19 | if (!class_exists('Http\Adapter\Guzzle7\Client')) { |
||
20 | throw new \LogicException('To use the Guzzle7 adapter you need to install the "php-http/guzzle7-adapter" package.'); |
||
21 | } |
||
22 | |||
23 | return Client::createWithConfig($config); |
||
24 | } |
||
25 | } |
||
26 |