NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# 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

## Methods summary

- `public` `__construct ( Guzzle\Service\ClientInterface $client, Guzzle\Inflection\InflectorInterface $inflector = null )`
- `public` `factory ( 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

# `public CommandInterface|null`
`factory( string $name, array $args = array() )`

Create a command by name

#### Parameters

$name
  `string`
  $name Command to create
$args
  `array`
  $args Command arguments

#### Returns

`CommandInterface|null`

#### Implementation of

`Guzzle\Service\Command\Factory\FactoryInterface::factory()`

### Magic methods summary

## Properties summary

`protected `Guzzle\Service\ClientInterface`` | $client | #
`protected `Guzzle\Inflection\InflectorInterface`` | $inflector | #