public function Updater::__construct in Automatic Updates 8.2
Constructs an Updater object.
Parameters
\Drupal\Core\State\StateInterface $state: The state service.
\Drupal\Core\StringTranslation\TranslationInterface $translation: The string translation service.
\PhpTuf\ComposerStager\Domain\BeginnerInterface $beginner: The Composer Stager's beginner service.
\PhpTuf\ComposerStager\Domain\StagerInterface $stager: The Composer Stager's stager service.
\PhpTuf\ComposerStager\Domain\CleanerInterface $cleaner: The Composer Stager's cleaner service.
\PhpTuf\ComposerStager\Domain\CommitterInterface $committer: The Composer Stager's committer service.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.
\Drupal\automatic_updates\PathLocator $path_locator: The path locator service.
File
- src/
Updater.php, line 103
Class
- Updater
- Defines a service to perform updates.
Namespace
Drupal\automatic_updatesCode
public function __construct(StateInterface $state, TranslationInterface $translation, BeginnerInterface $beginner, StagerInterface $stager, CleanerInterface $cleaner, CommitterInterface $committer, EventDispatcherInterface $event_dispatcher, PathLocator $path_locator) {
$this->state = $state;
$this->beginner = $beginner;
$this->stager = $stager;
$this->cleaner = $cleaner;
$this->committer = $committer;
$this
->setStringTranslation($translation);
$this->eventDispatcher = $event_dispatcher;
$this->pathLocator = $path_locator;
}