Class ConcreteClassFactory
Command factory used to create commands referencing concrete command classes
- Guzzle\Service\Command\Factory\ConcreteClassFactory implements Guzzle\Service\Command\Factory\FactoryInterface
Namespace: Guzzle\Service\Command\Factory
Located at Guzzle/Service/Command/Factory/ConcreteClassFactory.php
Located at Guzzle/Service/Command/Factory/ConcreteClassFactory.php
Methods summary
-
public__construct ( Guzzle\Service\ClientInterface $client, Guzzle\Inflection\InflectorInterface $inflector = null ) -
publicfactory ( string $name, array $args = array() )Create a command by name
Methods detail
#
public
__construct( Guzzle\Service\ClientInterface $client, Guzzle\Inflection\InflectorInterface $inflector = null )
Parameters
- $client
Guzzle\Service\ClientInterface
$client Client that owns the commands- $inflector
Guzzle\Inflection\InflectorInterface
$inflector Inflector used to resolve class names
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
|
$client | |
protected
|
$inflector |