Interface Guzzle\Common\FromConfigInterface

Implemented byGuzzle\Cache\CacheAdapterFactory, Guzzle\Service\ClientInterface

Interfaces that adds a factory method which is used to instantiate a class from an array of configuration options.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
factory() Static factory method used to turn an array or collection of configuration data into an instantiated object. Guzzle\Common\FromConfigInterface

Method Details

factory() public abstract static method

Static factory method used to turn an array or collection of configuration data into an instantiated object.

public abstract static Guzzle\Common\FromConfigInterface factory ( $config = [] )
$config array|Guzzle\Common\Collection

Configuration data