1 | <?php |
||
17 | class ClientFactory implements LoggerAwareInterface { |
||
18 | |||
19 | private $client; |
||
20 | private $logger; |
||
21 | private $config; |
||
22 | |||
23 | /** |
||
24 | * @since 2.1 |
||
25 | * |
||
26 | * @param array $config All configuration settings supported by Guzzle, and these: |
||
27 | * middleware => array of extra middleware to pass to guzzle |
||
28 | * user-agent => string default user agent to use for requests |
||
29 | */ |
||
30 | 5 | public function __construct( array $config = [] ) { |
|
34 | |||
35 | /** |
||
36 | * @since 2.1 |
||
37 | * |
||
38 | * @return Client |
||
39 | */ |
||
40 | 5 | public function getClient() { |
|
46 | |||
47 | /** |
||
48 | * @return Client |
||
49 | */ |
||
50 | 5 | private function newClient() { |
|
82 | |||
83 | /** |
||
84 | * Sets a logger instance on the object |
||
85 | * |
||
86 | * @since 2.1 |
||
87 | * |
||
88 | * @param LoggerInterface $logger The new Logger object. |
||
89 | * |
||
90 | * @return null |
||
91 | */ |
||
92 | public function setLogger( LoggerInterface $logger ) { |
||
95 | |||
96 | } |
||
97 |