src/Guzzle/Service/Command/Factory/CompositeFactory.php
public function remove($factory = null)
    {
        if (!($factory instanceof FactoryInterface)) {
            $factory = $this->find($factory);
        }

        $this->factories = array_values(array_filter($this->factories, function($f) use ($factory) {
            return $f !== $factory;
        }));

        return $this;
    }
public function remove($factory = null)
    {
        if (!($factory instanceof FactoryInterface)) {
            $factory = $this->find($factory);
        }

        $this->factories = array_values(array_filter($this->factories, function($f) use ($factory) {
            return $f !== $factory;
        }));

        return $this;
    }
public function remove ( $ factory = null ) { if ( ! ( $ factory instanceof FactoryInterface ) ) { $ factory = $ this -> find ( $ factory ) ; } $ this -> factories = array_values ( array_filter ( $ this -> factories , function ( $ f ) use ( $ factory ) { return $ f !== $ factory ; } ) ) ; return $ this ; }
Remove a specific command factory from the chain

@param string|FactoryInterface $factory Factory to remove by name or instance

@return CompositeFactory
Remove a specific command factory from the chain