PHP Класс Shopware\Install\Services\ReleaseDownloader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ShopwareCli\Services\ProcessExecutor $processExecutor, ShopwareCli\Services\IoService $ioService, ShopwareCli\Services\FileDownloader $downloader, OpenSSLVerifier $openSSLVerifier, string $cachePath )
downloadRelease ( string $release, string $installDir ) Download a release and unzip it

Приватные методы

Метод Описание
downloadFromUpdateApi ( $release ) : string New releases can be downloaded via the update api and provide a sha1 hash
getCacheFilePath ( $release ) : string Return a generic cache file name for a given release
getIndexedReleasesList ( ) : array Loads a list of the latest releases from the update API Returns them indexed by the Shopware version (e.g: 5.1.0)
getTempFile ( ) : string Return a temp dir name

Описание методов

__construct() публичный метод

public __construct ( ShopwareCli\Services\ProcessExecutor $processExecutor, ShopwareCli\Services\IoService $ioService, ShopwareCli\Services\FileDownloader $downloader, OpenSSLVerifier $openSSLVerifier, string $cachePath )
$processExecutor ShopwareCli\Services\ProcessExecutor
$ioService ShopwareCli\Services\IoService
$downloader ShopwareCli\Services\FileDownloader
$openSSLVerifier ShopwareCli\Services\OpenSSLVerifier
$cachePath string

downloadRelease() публичный метод

Download a release and unzip it
public downloadRelease ( string $release, string $installDir )
$release string
$installDir string