/** * Load the configuration group for the key. * * @param string $group * @param string $namespace * @param string $collection * @return void */ protected function load($group, $namespace, $collection) { $env = $this->environment; // 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[$collection])) { return; } $items = $this->loader->load($env, $group, $namespace); // 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->afterLoad[$namespace])) { $items = $this->callAfterLoad($namespace, $group, $items); } $this->items[$collection] = $items; }