| @@ 101-110 (lines=10) @@ | ||
| 98 | * |
|
| 99 | * @throws \UnexpectedValueException |
|
| 100 | */ |
|
| 101 | public function getSiteGroup() |
|
| 102 | { |
|
| 103 | if (!isset($this->sitegroup)) { |
|
| 104 | $this->sitegroup = $this->getenv('AH_SITE_GROUP'); |
|
| 105 | if (!$this->sitegroup) { |
|
| 106 | throw new \UnexpectedValueException('Expecting environment variable AH_SITE_GROUP to be set'); |
|
| 107 | } |
|
| 108 | } |
|
| 109 | return $this->sitegroup; |
|
| 110 | } |
|
| 111 | ||
| 112 | /** |
|
| 113 | * @param string $sitename |
|
| @@ 128-137 (lines=10) @@ | ||
| 125 | * |
|
| 126 | * @throws \UnexpectedValueException |
|
| 127 | */ |
|
| 128 | public function getSiteName() |
|
| 129 | { |
|
| 130 | if (!isset($this->sitename)) { |
|
| 131 | $this->sitename = $this->getenv('AH_SITE_NAME'); |
|
| 132 | if (!$this->sitename) { |
|
| 133 | throw new \UnexpectedValueException('Expecting environment variable AH_SITE_NAME to be set'); |
|
| 134 | } |
|
| 135 | } |
|
| 136 | return $this->sitename; |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * @param string $currentregion |
|
| @@ 155-164 (lines=10) @@ | ||
| 152 | * |
|
| 153 | * @throws \UnexpectedValueException |
|
| 154 | */ |
|
| 155 | public function getCurrentRegion() |
|
| 156 | { |
|
| 157 | if (!isset($this->currentregion)) { |
|
| 158 | $this->currentregion = $this->getenv('AH_CURRENT_REGION'); |
|
| 159 | if (!$this->currentregion) { |
|
| 160 | throw new \UnexpectedValueException('Expecting environment variable AH_CURRENT_REGION to be set'); |
|
| 161 | } |
|
| 162 | } |
|
| 163 | return $this->currentregion; |
|
| 164 | } |
|
| 165 | ||
| 166 | /** |
|
| 167 | * @param string $filepath |
|