You are here

public function Drupal8Config::__construct in Rocket.Chat 8

Same name and namespace in other branches
  1. 8.2 modules/rocket_chat_api/src/RocketChat/Drupal8Config.php \Drupal\rocket_chat_api\RocketChat\Drupal8Config::__construct()

Constructs a \Drupal\system\ConfigFormBase object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The ModuleHandler to interact with loaded modules.

\Drupal\Core\State\StateInterface $state: The state interface to manipulate the States.

File

modules/rocket_chat_api/src/RocketChat/Drupal8Config.php, line 51

Class

Drupal8Config
Class Drupal8Config connects the API with the drupal system.

Namespace

Drupal\rocket_chat_api\RocketChat

Code

public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $moduleHandler, StateInterface $state) {
  $this->config = $config_factory
    ->get('rocket_chat.settings');
  $this->moduleHandler = $moduleHandler;
  $this->state = $state;
}