/** * Load the configuration group for the key. * * @param string $group * @return array */ public function load($group) { $items = $this->fileLoader->load($group); if (isset($this->dbLoader)) { $items = array_merge($items, $this->dbLoader->load($group)); } return $items; }
/** * Load the configuration group for the key. * * @param string $group * @return void */ public function load($group) { if (isset($this->items[$group])) { return; } $this->items[$group] = $this->loader->load($group); }
/** * Load the configuration group for the key. * * @param string $group * @return void */ protected function load($group) { // If we've already loaded this collection, we will just bail out since we do // not want to load it again. Once items are loaded a first time they will // stay kept in memory within this class and not loaded from disk again. if (isset($this->items[$group])) { return; } $loaded = $this->loader->load($this->environment, $group); if ($loaded) { $this->items[$group] = $loaded; } }