public function WardenManager::__construct in Warden 8
Same name and namespace in other branches
- 8.2 src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::__construct()
- 3.x src/Service/WardenManager.php \Drupal\warden\Service\WardenManager::__construct()
Parameters
ConfigFactory $configFactory:
File
- src/
Service/ WardenManager.php, line 95
Class
- WardenManager
- Default controller for the warden module.
Namespace
Drupal\warden\ServiceCode
public function __construct(ConfigFactory $configFactory) {
$warden_settings = $configFactory
->get('warden.settings');
$this->siteName = $configFactory
->get('system.site')
->get('name');
$this->contribModuleRegex = $warden_settings
->get('warden_preg_match_contrib');
$this->customModuleRegex = $warden_settings
->get('warden_preg_match_custom');
$this->includeCustom = $warden_settings
->get('warden_match_custom');
$this->includeContrib = $warden_settings
->get('warden_match_contrib');
$this->includeLibrary = $warden_settings
->get('warden_match_library');
$this->customLibraries = $warden_settings
->get('warden_list_libraries');
$local_token = $warden_settings
->get('warden_token');
if (!empty($local_token)) {
$this->localToken = $local_token;
}
$this->coreVersion = \Drupal::VERSION;
parent::__construct($warden_settings
->get('warden_server_host_path'), $warden_settings
->get('warden_http_username'), $warden_settings
->get('warden_http_password'), $warden_settings
->get('warden_certificate_path'));
}