private function getSection($sectionName) { $section = $this->config->getSection($sectionName); if (!is_array($section)) { throw new DefinitionException(sprintf('IniFileChain did not return an array for the config section %s', $section)); } return $section; }
private function isDevelopmentModeEnabled() { $section = $this->settings->getSection('Development'); return (bool) @$section['enabled']; // TODO: code redundancy w/ Development. hopefully ok for now. }