Drupal 8  8.0.2
ClientFactory Class Reference

Public Member Functions

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

Protected Attributes


Detailed Description

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

Constructor & Destructor Documentation

__construct ( HandlerStack  $stack)

Constructs a new ClientFactory instance.

\GuzzleHttp\HandlerStack$stackThe handler stack.

Member Function Documentation

fromOptions ( array  $config = [])

Constructs a new client object from some configuration.

array$configThe config for the client.
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: