Open Journal Systems  3.3.0
Guzzle\Common\FromConfigInterface Interface Reference
Inheritance diagram for Guzzle\Common\FromConfigInterface:
Guzzle\Cache\CacheAdapterFactory Guzzle\Service\ClientInterface Guzzle\Service\Client Guzzle\Tests\Service\Mock\MockClient

Static Public Member Functions

static factory ($config=array())
 

Detailed Description

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

Definition at line 8 of file FromConfigInterface.php.

Member Function Documentation

◆ factory()

static Guzzle\Common\FromConfigInterface::factory (   $config = array())
static

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

Parameters
array | Collection$configConfiguration data
Returns
FromConfigInterface

Implemented in Guzzle\Service\Client, Guzzle\Cache\CacheAdapterFactory, and Guzzle\Tests\Service\Mock\MockClient.


The documentation for this interface was generated from the following file: