src/Commands/InstallCommand.php
protected function install($name, $version = 'dev-master', $type = 'composer', $tree = false)
    {
        $installer = new Installer(
            $name,
            $version,
            $type ?: $this->option('type'),
            $tree ?: $this->option('tree')
        );

        $installer->setRepository($this->laravel['components']);

        $installer->setConsole($this);

        if ($timeout = $this->option('timeout')) {
            $installer->setTimeout($timeout);
        }

        if ($path = $this->option('path')) {
            $installer->setPath($path);
        }

        $installer->run();

        if (!$this->option('no-update')) {
            $this->call('component:update', [
                'component' => $installer->getComponentName(),
            ]);
        }
    }
protected function install($name, $version = 'dev-master', $type = 'composer', $tree = false)
    {
        $installer = new Installer(
            $name,
            $version,
            $type ?: $this->option('type'),
            $tree ?: $this->option('tree')
        );

        $installer->setRepository($this->laravel['components']);

        $installer->setConsole($this);

        if ($timeout = $this->option('timeout')) {
            $installer->setTimeout($timeout);
        }

        if ($path = $this->option('path')) {
            $installer->setPath($path);
        }

        $installer->run();

        if (!$this->option('no-update')) {
            $this->call('component:update', [
                'component' => $installer->getComponentName(),
            ]);
        }
    }
protected function install ( $ name , $ version = 'dev-master' , $ type = 'composer' , $ tree = false ) { $ installer = new Installer ( $ name , $ version , $ type ? : $ this -> option ( 'type' ) , $ tree ? : $ this -> option ( 'tree' ) ) ; $ installer -> setRepository ( $ this -> laravel [ 'components' ] ) ; $ installer -> setConsole ( $ this ) ; if ( $ timeout = $ this -> option ( 'timeout' ) ) { $ installer -> setTimeout ( $ timeout ) ; } if ( $ path = $ this -> option ( 'path' ) ) { $ installer -> setPath ( $ path ) ; } $ installer -> run ( ) ; if ( ! $ this -> option ( 'no-update' ) ) { $ this -> call ( 'component:update' , [ 'component' => $ installer -> getComponentName ( ) , ] ) ; } }
Install the specified component.

@param string $name
@param string $version
@param string $type
@param bool $tree
Install the specified component .