/** * Read the configuration for the cache itself into the member variable * $this->config * * This always bypasses the cache so changes of the configuration of the * config system itself take effect immediately without the need to clear * the cache. * * @return array Hierarchic configuration array from the 'config' section, * with each configuration token as a key */ private function getConfig() { if ($this->config !== null) { return; } $this->config = $this->configIO->read(self::SECTION_CONFIG); }
/** * Gets the tokens of a configuration key. This method will read the * configuration for the section token (first token) if it has not been read before. * @return array Array with the tokens of the configuration key */ private function getKeyTokens($key) { if (!String::isString($key, String::NOT_EMPTY)) { throw new ConfigException('Provided key is empty'); } $tokens = explode(self::TOKEN_SEPARATOR, $key); $section = $tokens[0]; if (!isset($this->data[$section])) { $this->data[$section] = $this->io->read($section); } return $tokens; }