public function loadEnvironment($environmentName) { $environmentPath = ConfigService::getConfigsPath() . $environmentName . '/' . $this->_name . '.yml'; $this->_loadedEnvironmentName = $environmentName; if (is_file($environmentPath)) { $this->_environmentData = new YamlStorage($environmentPath); $this->_combinedData->extendDeepValue($this->_environmentData->getData()); } return $this; }
public function getCombinedVars($format = null) { if (!$format) { $format = $this->_responseFormat; } $combinedVars = new ArrayStorage($this->_vars); if ($this->_formatVars->has($format)) { $combinedVars->extendDeepValue($this->_formatVars->get($format)); } if ($format == View::FORMAT_HTML) { $combinedVars['_baseUri'] = DC::getRouter()->getBaseUri(); } return $combinedVars; }