PHP 클래스 Shopware\Install\Services\ReleaseDownloader

파일 보기 프로젝트 열기: shopwarelabs/sw-cli-tools 1 사용 예제들

공개 메소드들

메소드 설명
__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