Factory
class Factory (View source)
Properties
protected Application | $app |
Methods
array
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
createFromOptions(array $options, mixed $handler = 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.
Client
createFromConfig(Repository $config, string|object|null $adapter = null)
Create a new HTTP Client instance starting from configuration.
Client
createFromOptions(array $options, mixed $handler = null)
Create a new HTTP Client instance starting from configuration.