public function extractPlugin($name, $hash)
    {
        $fileCode = $name . $hash;
        $filePath = $this->getFilePath($fileCode);

        if (!Zip::extract($filePath, $this->baseDirectory . '/plugins/')) {
            throw new ApplicationException(Lang::get('system::lang.zip.extract_failed', ['file' => $filePath]));
        }

        @unlink($filePath);
    }
public function extractPlugin($name, $hash)
    {
        $fileCode = $name . $hash;
        $filePath = $this->getFilePath($fileCode);

        if (!Zip::extract($filePath, $this->baseDirectory . '/plugins/')) {
            throw new ApplicationException(Lang::get('system::lang.zip.extract_failed', ['file' => $filePath]));
        }

        @unlink($filePath);
    }
public function extractPlugin ( $ name , $ hash ) { $ fileCode = $ name . $ hash ; $ filePath = $ this -> getFilePath ( $ fileCode ) ; if ( ! Zip :: extract ( $ filePath , $ this -> baseDirectory . '/plugins/' ) ) { throw new ApplicationException ( Lang :: get ( 'system::lang.zip.extract_failed' , [ 'file' => $ filePath ] ) ) ; } @ unlink ( $ filePath ) ; }
Extracts a plugin after it has been downloaded.
Extracts a plugin after it has been downloaded .