\Guzzle\Service\Command\FactoryMapFactory

Command factory used when explicitly mapping strings to command classes

Summary

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

Properties

$map

$map : array

Type

array — Associative array mapping command names to classes

Methods

__construct()

__construct(array  $map) 

Parameters

array $map

Associative array mapping command names to classes

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