Exemplo n.º 1
0
 public static function getServiceManager()
 {
     if (is_null(self::$instance)) {
         self::$instance = new ServiceManager(\common_ext_ConfigDriver::singleton());
     }
     return self::$instance;
 }
Exemplo n.º 2
0
 /**
  * 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;
 }