src/Nooku/Composer/Installer.php
public function getDelegate($packageType)
    {
        if (!isset($this->_instances[$packageType]))
        {
            if (isset($this->_delegates[$packageType]))
            {
                $classname = $this->_delegates[$packageType];
                $instance  = new $classname($this->io, $this->composer, 'nooku-framework');

                $this->_instances[$packageType] = $instance;
            }
            else throw new \InvalidArgumentException('Unknown package type `'.$packageType.'`.');
        }

        return $this->_instances[$packageType];
    }
public function getDelegate($packageType)
    {
        if (!isset($this->_instances[$packageType]))
        {
            if (isset($this->_delegates[$packageType]))
            {
                $classname = $this->_delegates[$packageType];
                $instance  = new $classname($this->io, $this->composer, 'nooku-framework');

                $this->_instances[$packageType] = $instance;
            }
            else throw new \InvalidArgumentException('Unknown package type `'.$packageType.'`.');
        }

        return $this->_instances[$packageType];
    }
public function getDelegate ( $ packageType ) { if ( ! isset ( $ this -> _instances [ $ packageType ] ) ) { if ( isset ( $ this -> _delegates [ $ packageType ] ) ) { $ classname = $ this -> _delegates [ $ packageType ] ; $ instance = new $ classname ( $ this -> io , $ this -> composer , 'nooku-framework' ) ; $ this -> _instances [ $ packageType ] = $ instance ; } else throw new \ InvalidArgumentException ( 'Unknown package type `' . $ packageType . '`.' ) ; } return $ this -> _instances [ $ packageType ] ; }
Returns a specialized LibraryInstaller subclass to deal with the given package type.

@return Composer\Installer\LibraryInstaller
@throws \InvalidArgumentException
Returns a specialized LibraryInstaller subclass to deal with the given package type .