$factories
$factories : array
Composite factory used by a client object to create command objects utilizing multiple factories
getDefaultChain(\Guzzle\Service\ClientInterface $client) : self
Get the default chain to use with clients
\Guzzle\Service\ClientInterface | $client | Client to base the chain on |
add(\Guzzle\Service\Command\Factory\FactoryInterface $factory, string|\Guzzle\Service\Command\Factory\FactoryInterface $before = null) : \Guzzle\Service\Command\Factory\CompositeFactory
Add a command factory to the chain
\Guzzle\Service\Command\Factory\FactoryInterface | $factory | Factory to add |
string|\Guzzle\Service\Command\Factory\FactoryInterface | $before | Insert the new command factory before a command factory class or object matching a class name. |
has(\Guzzle\Service\Command\Factory\FactoryInterface|string $factory) : boolean
Check if the chain contains a specific command factory
\Guzzle\Service\Command\Factory\FactoryInterface|string | $factory | Factory to check |
remove(string|\Guzzle\Service\Command\Factory\FactoryInterface $factory = null) : \Guzzle\Service\Command\Factory\CompositeFactory
Remove a specific command factory from the chain
string|\Guzzle\Service\Command\Factory\FactoryInterface | $factory | Factory to remove by name or instance |
find(string|\Guzzle\Service\Command\Factory\FactoryInterface $factory) : null|\Guzzle\Service\Command\Factory\FactoryInterface
Get a command factory by class name
string|\Guzzle\Service\Command\Factory\FactoryInterface | $factory | Command factory class or instance |
factory(string $name, array $args = array()) : \Guzzle\Service\Command\CommandInterface
Create a command using the associated command factories
string | $name | Name of the command |
array | $args | Command arguments |