You are here

public function WritableFileSystemValidator::__construct in Automatic Updates 8.2

Constructs a WritableFileSystemValidator object.

Parameters

\Drupal\automatic_updates\PathLocator $path_locator: The path locator service.

string $app_root: The Drupal root.

\Drupal\Core\StringTranslation\TranslationInterface $translation: The translation service.

File

src/Validator/WritableFileSystemValidator.php, line 44

Class

WritableFileSystemValidator
Checks that the file system is writable.

Namespace

Drupal\automatic_updates\Validator

Code

public function __construct(PathLocator $path_locator, string $app_root, TranslationInterface $translation) {
  $this->pathLocator = $path_locator;
  $this->appRoot = $app_root;
  $this
    ->setStringTranslation($translation);
}