You are here

public function Config::__construct in DrupalAuth for SimpleSAMLphp 8

Constructs a config object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

File

src/Config.php, line 48

Class

Config
Config service.

Namespace

Drupal\drupalauth4ssp

Code

public function __construct(ConfigFactoryInterface $config_factory) {
  $config = $config_factory
    ->get('drupalauth4ssp.settings');
  $this->cookieName = $config
    ->get('cookie_name');
  $this->returnToList = $config
    ->get('returnto_list');

  // Get the secretsalt.
  $this->secretSalt = SimpleSAMLConfig::getSecretSalt();

  // Get the baseurlpath.
  $this->basePath = SimpleSAMLConfiguration::getInstance()
    ->getBasePath();
}