You are here

public function FeaturesGenerationArchive::__construct in Features 8.4

Same name and namespace in other branches
  1. 8.3 src/Plugin/FeaturesGeneration/FeaturesGenerationArchive.php \Drupal\features\Plugin\FeaturesGeneration\FeaturesGenerationArchive::__construct()

Creates a new FeaturesGenerationArchive instance.

Parameters

string $root: The app root.

\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The CSRF token generator.

\Drupal\Core\File\FileSystem $file_system: The file system service.

File

src/Plugin/FeaturesGeneration/FeaturesGenerationArchive.php, line 58

Class

FeaturesGenerationArchive
Class for generating a compressed archive of packages.

Namespace

Drupal\features\Plugin\FeaturesGeneration

Code

public function __construct($root, CsrfTokenGenerator $csrf_token, FileSystem $file_system) {
  $this->root = $root;
  $this->csrfToken = $csrf_token;
  $this->fileSystem = $file_system;
}