Nwidart\Modules\Commands\InstallCommand::install PHP Метод

install() защищенный Метод

Install the specified module.
protected install ( string $name, string $version = 'dev-master', string $type = 'composer', boolean $tree = false )
$name string
$version string
$type string
$tree boolean
    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['modules']);
        $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('module:update', ['module' => $installer->getModuleName()]);
        }
    }