interface FileDownloaderInterface

Class FileDownloader

Methods

download( string $url, string $pathToStore)

No description

__construct( LoggerInterface $logger, Translator $translator)

No description

static  $this
getInstance()

No description

Details

at line 33
download( string $url, string $pathToStore)

Parameters

string $url
string $pathToStore

Exceptions

FileNotFoundException
ErrorException
HttpUrlException Downloads the file $url in $pathToStore

at line 35
__construct( LoggerInterface $logger, Translator $translator)

Parameters

LoggerInterface $logger
Translator $translator

at line 42
static $this getInstance()

Return Value

$this Returns an hydrated instance