Back to UpdateCoreCommand class

Method downloadFile

public bool
downloadFile
(mixed $url)
Downloads the Update file
Parameters
  • string $url URL to update file
Returns
  • bool | string
Since
  • 4.0.0

Method downloadFile - Source code

/**
 * Downloads the Update file
 *
 * @param   string  $url  URL to update file
 *
 * @return boolean | string
 *
 * @since 4.0.0
 */
public function downloadFile($url)
{
    $file = InstallerHelper::downloadPackage($url);
    if (!$file) {
        return false;
    }
    return $file;
}