public static function getServiceManager() { if (is_null(self::$instance)) { self::$instance = new ServiceManager(\common_ext_ConfigDriver::singleton()); } return self::$instance; }
/** * Returns the KV persistence to use for configurations * @return common_persistence_KeyValuePersistence */ private function getConfigPersistence() { return common_ext_ConfigDriver::singleton(); }
/** * Returns the KV persistence to use for configurations * @return common_persistence_KeyValuePersistence */ private function getConfigPersistence() { if (is_null($this->configPersistence)) { $this->configPersistence = common_ext_ConfigDriver::getPersistence($this); } return $this->configPersistence; }