\Guzzle\Service\Command\FactoryAliasFactory

Command factory used when you need to provide aliases to commands

Summary

Methods
Properties
Constants
__construct()
factory()
No public properties found
No constants found
No protected methods found
$aliases
$client
N/A
No private methods found
No private properties found
N/A

Properties

$aliases

$aliases : array

Type

array — Associative array mapping command aliases to the aliased command

Methods

__construct()

__construct(\Guzzle\Service\ClientInterface  $client, array  $aliases) 

Parameters

\Guzzle\Service\ClientInterface $client

Client used to retry with the alias

array $aliases

Associative array mapping aliases to the alias

factory()

factory(string  $name, array  $args = array()) : \Guzzle\Service\Command\CommandInterface|null

Create a command by name

Parameters

string $name

Command to create

array $args

Command arguments

Returns

\Guzzle\Service\Command\CommandInterface|null