/** * Returns an instance of class (singleton pattern implementation). * * @return BOL_ConfigService */ public static function getInstance() { if (self::$classInstance === null) { self::$classInstance = new self(); } return self::$classInstance; }
/** * Updates config value. * * @param string $key * @param string $name * @param mixed $value */ public function saveConfig($key, $name, $value) { $this->configService->saveConfig($key, $name, $value); $this->generateCache(); }