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\ValidatorCode
public function __construct(PathLocator $path_locator, string $app_root, TranslationInterface $translation) {
$this->pathLocator = $path_locator;
$this->appRoot = $app_root;
$this
->setStringTranslation($translation);
}