public function DrupalBrowserDownloadDestination::saveFile in Backup and Migrate 5.0.x
Save a file to the destination.
Parameters
\Drupal\backup_migrate\Core\File\BackupFileReadableInterface $file: The file to save.
Overrides BrowserDownloadDestination::saveFile
File
- src/
Drupal/ Destination/ DrupalBrowserDownloadDestination.php, line 18
Class
- DrupalBrowserDownloadDestination
- @package Drupal\backup_migrate\Drupal\Destination
Namespace
Drupal\backup_migrate\Drupal\DestinationCode
public 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);
}