protected function AcsfConfigDefault::loadConfig in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 src/AcsfConfigDefault.php \Drupal\acsf\AcsfConfigDefault::loadConfig()
Implements AcsfConfig::loadConfig().
Overrides AcsfConfig::loadConfig
1 call to AcsfConfigDefault::loadConfig()
- AcsfConfigRest::loadConfig in src/
AcsfConfigRest.php - Implements AcsfConfig::loadConfig().
1 method overrides AcsfConfigDefault::loadConfig()
- AcsfConfigRest::loadConfig in src/
AcsfConfigRest.php - Implements AcsfConfig::loadConfig().
File
- src/
AcsfConfigDefault.php, line 20
Class
- AcsfConfigDefault
- Creates a config object using our custom INI file.
Namespace
Drupal\acsfCode
protected function loadConfig() {
// If the cache is empty, we haven't loaded the config file yet.
if (empty(self::$cacheDefault)) {
self::$cacheDefault = new \stdClass();
$this
->loadIniFile();
}
$this->url = self::$cacheDefault->url;
$this->username = self::$cacheDefault->username;
$this->password = self::$cacheDefault->password;
$this->urlSuffix = self::$cacheDefault->urlSuffix;
$this->sourceUrl = self::$cacheDefault->sourceUrl;
}