function UpdateManager::__construct

Same name in other branches
  1. 9 core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
  2. 8.9.x core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
  3. 11.x core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()

Constructs an UpdateManager.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The Module Handler service

\Drupal\update\UpdateProcessorInterface $update_processor: The Update Processor service.

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

\Drupal\Core\KeyValueStore\KeyValueFactoryInterface $key_value_expirable_factory: The expirable key/value factory.

\Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler.

\Drupal\Core\Extension\ModuleExtensionList $extension_list_module: The module extension list.

\Drupal\Core\Extension\ThemeExtensionList $extension_list_theme: The theme extension list.

File

core/modules/update/src/UpdateManager.php, line 106

Class

UpdateManager
Default implementation of UpdateManagerInterface.

Namespace

Drupal\update

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler, ModuleExtensionList $extension_list_module, ThemeExtensionList $extension_list_theme) {
    $this->updateSettings = $config_factory->get('update.settings');
    $this->moduleHandler = $module_handler;
    $this->updateProcessor = $update_processor;
    $this->stringTranslation = $translation;
    $this->keyValueStore = $key_value_expirable_factory->get('update');
    $this->themeHandler = $theme_handler;
    $this->availableReleasesTempStore = $key_value_expirable_factory->get('update_available_releases');
    $this->projects = [];
    $this->moduleExtensionList = $extension_list_module;
    $this->themeExtensionList = $extension_list_theme;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.