public function getConfigStore() { if (!$this->configStore) { $args = array('site' => $this); $configStoreClass = Kurogo::arrayVal($this->initArgs, 'CONFIG_CLASS', 'ConfigFileStore'); $this->configStore = ConfigStore::factory($configStoreClass, $args); } return $this->configStore; }