class FileDownloader implements FileDownloaderInterface

Class FileDownloader

Methods

__construct( LoggerInterface $logger, Translator $translator)

No description

static  $this
getInstance()

No description

download( string $url, string $pathToStore)

No description

Details

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

Parameters

LoggerInterface $logger
Translator $translator

at line 43
static $this getInstance()

Return Value

$this Returns an hydrated instance

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

Parameters

string $url
string $pathToStore

Exceptions

FileNotFoundException
ErrorException
HttpUrlException Downloads the file $url in $pathToStore