1: <?php
2:
3: namespace Guzzle\Service\Command\Factory;
4:
5: use Guzzle\Service\Command\CommandInterface;
6:
7: /**
8: * Interface for creating commands by name
9: */
10: interface FactoryInterface
11: {
12: /**
13: * Create a command by name
14: *
15: * @param string $name Command to create
16: * @param array $args Command arguments
17: *
18: * @return null|CommandInterface
19: */
20: public function factory($name, array $args = array());
21: }
22: