public function Cleaner::__construct in Automatic Updates 8.2
Constructs a Cleaner object.
Parameters
\PhpTuf\ComposerStager\Domain\CleanerInterface $decorated: The decorated cleaner service.
string $site_path: The current site path (e.g., 'sites/default'), without leading or trailing slashes.
\Drupal\automatic_updates\PathLocator $locator: The path locator service.
File
- src/
ComposerStager/ Cleaner.php, line 47
Class
- Cleaner
- Defines a cleaner service that makes the staged site directory writable.
Namespace
Drupal\automatic_updates\ComposerStagerCode
public function __construct(CleanerInterface $decorated, string $site_path, PathLocator $locator) {
$this->decorated = $decorated;
$this->sitePath = $site_path;
$this->pathLocator = $locator;
}