PHP Class PhpBrew\Downloader\DownloadFactory

Afficher le fichier Open project: phpbrew/phpbrew Class Usage Examples

Méthodes publiques

Méthode Description
addOptionsForCommand ( OptionCollection $opts )
getInstance ( CLIFramework\Logger $logger, OptionResult $options, string $downloader = null ) : BaseDownloader

Méthodes protégées

Méthode Description
create ( CLIFramework\Logger $logger, OptionResult $options, array $preferences, boolean $requireSsl = true ) : BaseDownloader | null

Method Details

addOptionsForCommand() public static méthode

public static addOptionsForCommand ( OptionCollection $opts )
$opts GetOptionKit\OptionCollection

create() protected static méthode

protected static create ( CLIFramework\Logger $logger, OptionResult $options, array $preferences, boolean $requireSsl = true ) : BaseDownloader | null
$logger CLIFramework\Logger is used for creating downloader
$options GetOptionKit\OptionResult options used for create downloader
$preferences array Use downloader by preferences.
$requireSsl boolean
Résultat BaseDownloader | null

getInstance() public static méthode

public static getInstance ( CLIFramework\Logger $logger, OptionResult $options, string $downloader = null ) : BaseDownloader
$logger CLIFramework\Logger
$options GetOptionKit\OptionResult
$downloader string
Résultat BaseDownloader