Open Journal Systems
3.3.0
|
Public Member Functions | |
get ($name, $throwAway=false) | |
set ($key, $service) | |
Service builder used to store and build clients or arbitrary data. Client configuration data can be supplied to tell the service builder how to create and cache {
Definition at line 13 of file ServiceBuilderInterface.php.
Guzzle\Service\Builder\ServiceBuilderInterface::get | ( | $name, | |
$throwAway = false |
|||
) |
Get a ClientInterface object or arbitrary data from the service builder
string | $name | Name of the registered service or data to retrieve |
bool | array | $throwAway | Only pertains to retrieving client objects built using a configuration array. Set to TRUE to not store the client for later retrieval from the ServiceBuilder. If an array is specified, that data will overwrite the configured params of the client if the client implements { |
ServiceNotFoundException | when a client or data cannot be found by the given name |
Implemented in Guzzle\Service\Builder\ServiceBuilder.
Guzzle\Service\Builder\ServiceBuilderInterface::set | ( | $key, | |
$service | |||
) |
Register a service or arbitrary data by name with the service builder
string | $key | Name of the client or data to register |
mixed | $service | Client configuration array or arbitrary data to register. The client configuration array must include a 'class' (string) and 'params' (array) key. |
Implemented in Guzzle\Service\Builder\ServiceBuilder.