src/Guzzle/Service/Command/Factory/CompositeFactory.php
public function find($factory)
    {
        foreach ($this->factories as $f) {
            if ($factory === $f || (is_string($factory) && $f instanceof $factory)) {
                return $f;
            }
        }
    }
public function find($factory)
    {
        foreach ($this->factories as $f) {
            if ($factory === $f || (is_string($factory) && $f instanceof $factory)) {
                return $f;
            }
        }
    }
public function find ( $ factory ) { foreach ( $ this -> factories as $ f ) { if ( $ factory === $ f || ( is_string ( $ factory ) && $ f instanceof $ factory ) ) { return $ f ; } } }
Get a command factory by class name

@param string|FactoryInterface $factory Command factory class or instance

@return null|FactoryInterface
Get a command factory by class name