SilverStripe\EnvironmentCheck\Services\ClientFactory
Factory class for creating HTTP client which are injected into some env check classes. Inject via YAML, arguments for Guzzle client can be supplied using "constructor" property or set as default_config.
Synopsis
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
Implements
- SilverStripe\Core\Injector\Factory
Members
private
- $default_config
—
array
Default config for Guzzle client.
Methods
public
- create() — Wrapper to create a Guzzle client.
- getConfig() — Merge config provided from yaml with default config