You are here

public function ConfigBit::__construct in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 9.0.x

Same name and namespace in other branches
  1. 8.8 src/Config/ConfigBit.php \Drupal\varbase\Config\ConfigBit::__construct()

ConfigBit construct.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

\Drupal\Core\Config\ConfigManagerInterface $config_manager: The configuration manager.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

\Drupal\Core\Database\Connection $database: The database connection to be used.

\Drupal\Core\Plugin\CachedDiscoveryClearerInterface $plugin_cache_clearer: A plugin cache clear instance.

File

src/Config/ConfigBit.php, line 78

Class

ConfigBit
Class ConfigBit.

Namespace

Drupal\varbase\Config

Code

public function __construct(ConfigFactoryInterface $config_factory, ConfigManagerInterface $config_manager, ModuleHandlerInterface $module_handler, Connection $database, CachedDiscoveryClearerInterface $plugin_cache_clearer) {
  $this->configFactory = $config_factory;
  $this->configManager = $config_manager;
  $this->moduleHandler = $module_handler;
  $this->database = $database;
  $this->pluginCacheClearer = $plugin_cache_clearer;
}