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 )
-
public
setServiceDescription ( Guzzle\Service\Description\ServiceDescriptionInterface $description )
Change the service description used with the factory
-
public
getServiceDescription ( )
Returns the service description
-
public
factory ( 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|null
Implementation of
Magic methods summary
Properties summary
protected
|
$description | |
protected
|
$inflector |