Factory
class Factory (View source)
Properties
protected Application | $app |
Methods
array
array
normalizeOptions(array $options)
Normalize the Zend HTTP Client options.
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
createFromOptions(array $options, mixed $adapter = null)
Create a new HTTP Client instance starting from configuration.
Details
__construct(Application $app)
No description
protected array
getOptions(Repository $config)
Read the HTTP Client configuration.
protected array
normalizeOptions(array $options)
Normalize the Zend HTTP Client options.
Client
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
Client
createFromOptions(array $options, mixed $adapter = null)
Create a new HTTP Client instance starting from configuration.