UpdateManager::__construct

public UpdateManager::__construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, UpdateProcessorInterface $update_processor, TranslationInterface $translation, KeyValueFactoryInterface $key_value_expirable_factory, ThemeHandlerInterface $theme_handler)

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 86

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) {
  $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();
}
doc_Drupal
2016-10-29 09:50:49
Comments
Leave a Comment

Please login to continue.