Drupal 8  8.0.2
ClientFactory Class Reference

Public Member Functions

 __construct (HandlerStack $stack)
 
 fromOptions (array $config=[])
 

Protected Attributes

 $stack
 

Detailed Description

Helper class to construct a HTTP client with Drupal specific config.

Constructor & Destructor Documentation

__construct ( HandlerStack  $stack)

Constructs a new ClientFactory instance.

Parameters
\GuzzleHttp\HandlerStack$stackThe handler stack.

Member Function Documentation

fromOptions ( array  $config = [])

Constructs a new client object from some configuration.

Parameters
array$configThe config for the client.
Returns
The HTTP client.

References Settings\get(), NestedArray\mergeDeep(), and Drupal\VERSION.

Here is the call graph for this function:


The documentation for this class was generated from the following file: