Class ServiceDescriptionFactory
Command factory used to create commands based on service descriptions
- Guzzle\Service\Command\Factory\ServiceDescriptionFactory implements Guzzle\Service\Command\Factory\FactoryInterface
Namespace: Guzzle\Service\Command\Factory
Located at Guzzle/Service/Command/Factory/ServiceDescriptionFactory.php
Located at Guzzle/Service/Command/Factory/ServiceDescriptionFactory.php
Methods summary
-
public__construct ( Guzzle\Service\Description\ServiceDescriptionInterface $description, Guzzle\Inflection\InflectorInterface $inflector = null ) -
publicsetServiceDescription ( Guzzle\Service\Description\ServiceDescriptionInterface $description )Change the service description used with the factory
-
publicgetServiceDescription ( )Returns the service description
-
publicfactory ( string $name, array $args = array() )Create a command by name
Methods detail
#
public
__construct( Guzzle\Service\Description\ServiceDescriptionInterface $description, Guzzle\Inflection\InflectorInterface $inflector = null )
Parameters
- $description
Guzzle\Service\Description\ServiceDescriptionInterface
$description Service description- $inflector
Guzzle\Inflection\InflectorInterface
$inflector Optional inflector to use if the command is not at first found
#
public
Guzzle\Service\Command\Factory\FactoryInterface
setServiceDescription( Guzzle\Service\Description\ServiceDescriptionInterface $description )
Change the service description used with the factory
Parameters
- $description
Guzzle\Service\Description\ServiceDescriptionInterface
$description Service description to use
Returns
Create a command by name
Parameters
- $name
string
$name Command to create- $args
array
$args Command arguments
Returns
CommandInterface|nullImplementation of
Magic methods summary
Properties summary
protected
|
$description | |
protected
|
$inflector |