Метод | Описание | |
---|---|---|
__construct ( ShopwareCli\Services\ProcessExecutor $processExecutor, ShopwareCli\Services\IoService $ioService, ShopwareCli\Services\FileDownloader $downloader, |
||
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 |
public __construct ( ShopwareCli\Services\ProcessExecutor $processExecutor, ShopwareCli\Services\IoService $ioService, ShopwareCli\Services\FileDownloader $downloader, |
||
$processExecutor | ShopwareCli\Services\ProcessExecutor | |
$ioService | ShopwareCli\Services\IoService | |
$downloader | ShopwareCli\Services\FileDownloader | |
$openSSLVerifier | ||
$cachePath | string |
public downloadRelease ( string $release, string $installDir ) | ||
$release | string | |
$installDir | string |