public function CronUpdater::__construct in Automatic Updates 8.2
Constructs a CronUpdater object.
Parameters
\Drupal\automatic_updates\Updater $updater: The updater service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger channel factory.
File
- src/
CronUpdater.php, line 71
Class
- CronUpdater
- Defines a service that updates via cron.
Namespace
Drupal\automatic_updatesCode
public function __construct(Updater $updater, ConfigFactoryInterface $config_factory, LoggerChannelFactoryInterface $logger_factory) {
$this->updater = $updater;
$this->configFactory = $config_factory;
$this->logger = $logger_factory
->get('automatic_updates');
}