src/Guzzle/Service/Command/Factory/CompositeFactory.php
public function factory($name, array $args = array())
    {
        foreach ($this->factories as $factory) {
            $command = $factory->factory($name, $args);
            if ($command) {
                return $command;
            }
        }
    }
public function factory($name, array $args = array())
    {
        foreach ($this->factories as $factory) {
            $command = $factory->factory($name, $args);
            if ($command) {
                return $command;
            }
        }
    }
public function factory ( $ name , array $ args = array ( ) ) { foreach ( $ this -> factories as $ factory ) { $ command = $ factory -> factory ( $ name , $ args ) ; if ( $ command ) { return $ command ; } } }
Create a command using the associated command factories

@param string $name Name of the command
@param array  $args Command arguments

@return CommandInterface
Create a command using the associated command factories