get()
get(string $name, boolean|array $throwAway = false) : \Guzzle\Service\ClientInterface|mixed
Get a ClientInterface object or arbitrary data from the service builder
Parameters
string | $name | Name of the registered service or data to retrieve |
boolean|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 {@see \Guzzle\Common\FromConfigInterface} and will not store the client for later retrieval. |
Throws
- \Guzzle\Service\Exception\ServiceNotFoundException
when a client or data cannot be found by the given name