PHP Class CraftCli\Support\Downloader\BaseDownloader

Afficher le fichier Open project: rsanchez/craft-cli

Protected Properties

Свойство Type Description
$output Symfony\Component\Console\Output\OutputInterface
$path string Path to download the file
$progressBar Symfony\Component\Console\Helper\ProgressBar
$url string Url to download

Méthodes publiques

Méthode Description
download ( ) : string Download the file to the specified path
setOutput ( Symfony\Component\Console\Output\OutputInterface $output ) Set the output

Méthodes protégées

Méthode Description
showDownloadProgress ( $notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax ) : void ProgressBar callback

Method Details

download() public méthode

Download the file to the specified path
public download ( ) : string
Résultat string path to the downloaded file

setOutput() public méthode

Set the output
public setOutput ( Symfony\Component\Console\Output\OutputInterface $output )
$output Symfony\Component\Console\Output\OutputInterface

showDownloadProgress() protected méthode

ProgressBar callback
protected showDownloadProgress ( $notificationCode, $severity, $message, $messageCode, $bytesTransferred, $bytesMax ) : void
$notificationCode
$severity
$message
$messageCode
$bytesTransferred
$bytesMax
Résultat void

Property Details

$output protected_oe property

protected OutputInterface,Symfony\Component\Console\Output $output
Résultat Symfony\Component\Console\Output\OutputInterface

$path protected_oe property

Path to download the file
protected string $path
Résultat string

$progressBar protected_oe property

protected ProgressBar,Symfony\Component\Console\Helper $progressBar
Résultat Symfony\Component\Console\Helper\ProgressBar

$url protected_oe property

Url to download
protected string $url
Résultat string