public function DrupalTempFileAdapter::__construct in Backup and Migrate 5.0.x
Construct a manager.
Parameters
\Drupal\Core\File\FileSystem $filesystem: A file path or stream URL for the temp directory.
string $dir: The directory to save to.
string $prefix: A string prefix to add to each created file.
Overrides TempFileAdapter::__construct
File
- src/
Drupal/ File/ DrupalTempFileAdapter.php, line 33
Class
- DrupalTempFileAdapter
- @package Drupal\backup_migrate\Drupal\File
Namespace
Drupal\backup_migrate\Drupal\FileCode
public function __construct(FileSystemInterface $filesystem, $dir = 'temporary://', $prefix = 'bam') {
// Set the prefix and initialize the temp file tracking.
parent::__construct($dir, $prefix);
$this->filesystem = $filesystem;
}