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

# Interface FactoryInterface

Interface for creating commands by name

### Direct known implementers

`Guzzle\Service\Command\Factory\AliasFactory`, `Guzzle\Service\Command\Factory\CompositeFactory`, `Guzzle\Service\Command\Factory\ConcreteClassFactory`, `Guzzle\Service\Command\Factory\MapFactory`, `Guzzle\Service\Command\Factory\ServiceDescriptionFactory`

Namespace: Guzzle\Service\Command\Factory
Located at Guzzle/Service/Command/Factory/FactoryInterface.php

## Methods summary

- `public` `factory ( string $name, array $args = array() )`

  Create a command by name

## Methods detail

# `public `Guzzle\Service\Command\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

``Guzzle\Service\Command\CommandInterface`|null`

### Magic methods summary