You are here

class AcsfConfigRest in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 src/AcsfConfigRest.php \Drupal\acsf\AcsfConfigRest

Creates a config object using our REST API keys.

Hierarchy

Expanded class hierarchy of AcsfConfigRest

File

src/AcsfConfigRest.php, line 8

Namespace

Drupal\acsf
View source
class AcsfConfigRest extends AcsfConfigDefault {

  /**
   * Implements AcsfConfig::loadConfig().
   */
  protected function loadConfig() {
    parent::loadConfig();
    $this->username = $GLOBALS['gardens_site_settings']['conf']['acsf_site_id'];
    $this->password = $GLOBALS['gardens_site_settings']['conf']['site_api_key'];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AcsfConfig::$ahEnv protected property An optional Acquia Hosting environment.
AcsfConfig::$ahSite protected property An optional Acquia Hosting sitegroup.
AcsfConfig::$password protected property The password of the remote service.
AcsfConfig::$sourceUrl protected property The optional source URL of the factory which our sites were staged from.
AcsfConfig::$url protected property The URL of the remote service (factory).
AcsfConfig::$urlSuffix protected property The optional signup suffix of the Factory. See getUrlSuffix() for caveat.
AcsfConfig::$username protected property The username of the remote service.
AcsfConfig::getPassword public function Retrieves the config password.
AcsfConfig::getSourceUrl public function Retrieves the URL of the production factory.
AcsfConfig::getUrl public function Retrieves the URL of the remote service (factory).
AcsfConfig::getUrlSuffix public function Retrieves the domain suffix used for sites hosted on this ACSF environment.
AcsfConfig::getUsername public function Retrieves the config username.
AcsfConfig::__construct public function Constructor.
AcsfConfigDefault::$cacheDefault protected static property Keep the values from the config file in a shared static cache.
AcsfConfigDefault::loadIniFile protected function Implements AcsfConfig::loadConfig().
AcsfConfigRest::loadConfig protected function Implements AcsfConfig::loadConfig(). Overrides AcsfConfigDefault::loadConfig