Class AliasFactory
Command factory used when you need to provide aliases to commands
- Guzzle\Service\Command\Factory\AliasFactory implements Guzzle\Service\Command\Factory\FactoryInterface
Namespace: Guzzle\Service\Command\Factory
Located at Guzzle/Service/Command/Factory/AliasFactory.php
Located at Guzzle/Service/Command/Factory/AliasFactory.php
Methods summary
-
public
__construct ( Guzzle\Service\ClientInterface $client, array $aliases )
-
public
factory ( string $name, array $args = array() )
Create a command by name
Methods detail
Parameters
- $client
Guzzle\Service\ClientInterface
$client Client used to retry with the alias- $aliases
array
$aliases Associative array mapping aliases to the alias
Create a command by name
Parameters
- $name
string
$name Command to create- $args
array
$args Command arguments
Returns
CommandInterface|null
Implementation of
Magic methods summary
Properties summary
protected
array
|
$aliases |
#
Associative array mapping command aliases to the aliased command |
protected
|
$client |
#
Client used to retry using aliases |