public function UpdateManager::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/update/src/UpdateManager.php \Drupal\update\UpdateManager::__construct()
Constructs a 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.
File
- core/
modules/ update/ src/ UpdateManager.php, line 90 - Contains \Drupal\update\UpdateManager.
Class
- UpdateManager
- Default implementation of UpdateManagerInterface.
Namespace
Drupal\updateCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler) {
$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 = array();
}