function DrupalBrowserDownloadDestination::saveFile in Backup and Migrate 8.4
Save a file to the destination.
Parameters
\BackupMigrate\Core\File\BackupFileReadableInterface $file: The file to save.
Overrides BrowserDownloadDestination::saveFile
File
- src/
Destination/ DrupalBrowserDownloadDestination.php, line 18
Class
- DrupalBrowserDownloadDestination
- Class DrupalBrowserDownloadDestination.
Namespace
BackupMigrate\Drupal\DestinationCode
function saveFile(BackupFileReadableInterface $file) {
// @TODO: Replace the header/print calls with a Symfony response (if that
// allows streaming).
// Need to find some way to return new BinaryFileResponse($uri, 200
// $headers); all the way out to the output of the caller.
// Probably need to provide the response as a service in the environment.
parent::saveFile($file);
// @todo Get rid of this ugliness.
exit;
}