PHP Class Shopware\Install\Services\ReleaseDownloader

ファイルを表示 Open project: shopwarelabs/sw-cli-tools Class Usage Examples

Public Methods

Method Description
__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

Private Methods

Method Description
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

Method Details

__construct() public method

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() public method

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