protected function loadConfig() { $this->data = $this->adapter->load($this->fileName); $data = $this->data; foreach ($this->root as $item) { $data = isset($data[$item]) ? $data[$item] : array(); } return $data; }
/** * Load data */ public function load() { $this->data = \Nette\ArrayHash::from($this->adapter->load($this->fileName), true); }
/** * @return array */ protected function loadConfig() { $config = new NeonAdapter(); return $config->load($this->getConfigPath()); }