src/Core/Console/PluginInstallCommand.php
protected function installPlugin(string $name)
    {
        $this->info('Downloading plugin...');

        $this->files->copy($this->option('url'), $this->temp);

        if (true !== $this->zip->open($this->temp)) {
            $this->error('Cannot open plugin zip file.');

            return;
        }

        $this->zip->extractTo($this->path());
        $this->zip->close();

        $this->files->move(
            $this->path($this->option('dir')),
            $this->path($name)
        );

        $this->files->delete($this->temp);
    }
protected function installPlugin(string $name)
    {
        $this->info('Downloading plugin...');

        $this->files->copy($this->option('url'), $this->temp);

        if (true !== $this->zip->open($this->temp)) {
            $this->error('Cannot open plugin zip file.');

            return;
        }

        $this->zip->extractTo($this->path());
        $this->zip->close();

        $this->files->move(
            $this->path($this->option('dir')),
            $this->path($name)
        );

        $this->files->delete($this->temp);
    }
protected function installPlugin ( string $ name ) { $ this -> info ( 'Downloading plugin...' ) ; $ this -> files -> copy ( $ this -> option ( 'url' ) , $ this -> temp ) ; if ( true !== $ this -> zip -> open ( $ this -> temp ) ) { $ this -> error ( 'Cannot open plugin zip file.' ) ; return ; } $ this -> zip -> extractTo ( $ this -> path ( ) ) ; $ this -> zip -> close ( ) ; $ this -> files -> move ( $ this -> path ( $ this -> option ( 'dir' ) ) , $ this -> path ( $ name ) ) ; $ this -> files -> delete ( $ this -> temp ) ; }
Install the plugin.

@param string $name
Install the plugin .