Class Guzzle\Service\Command\Factory\ServiceDescriptionFactory

InheritanceGuzzle\Service\Command\Factory\ServiceDescriptionFactory
ImplementsGuzzle\Service\Command\Factory\FactoryInterface

Command factory used to create commands based on service descriptions

Property Details

$description protected property
$inflector protected property

Method Details

__construct() public method

public void __construct ( Guzzle\Service\Description\ServiceDescriptionInterface $description, Guzzle\Inflection\InflectorInterface $inflector null )
$description Guzzle\Service\Description\ServiceDescriptionInterface

Service description

$inflector Guzzle\Inflection\InflectorInterface

Optional inflector to use if the command is not at first found

factory() public method

public void factory ( $name, array $args = [] )
$name
$args
getServiceDescription() public method

Returns the service description

public Guzzle\Service\Description\ServiceDescriptionInterface getServiceDescription ( )
setServiceDescription() public method

Change the service description used with the factory

public Guzzle\Service\Command\Factory\FactoryInterface setServiceDescription ( Guzzle\Service\Description\ServiceDescriptionInterface $description )
$description Guzzle\Service\Description\ServiceDescriptionInterface

Service description to use