Exemple #1
0
 /**
  * Change the implementation of the access control permanently
  * 
  * @param FuncAccessControl $implementation
  */
 public static function setImplementation(FuncAccessControl $implementation)
 {
     self::$implementation = $implementation;
     common_ext_ExtensionsManager::singleton()->getExtensionById('tao')->setConfig(self::CONFIG_KEY_IMPLEMENTATION, get_class($implementation));
 }
Exemple #2
0
 /**
  * Change the implementation of the access control permanently
  * 
  * @param FuncAccessControl $implementation
  */
 public static function setImplementation(FuncAccessControl $implementation)
 {
     self::$implementation = $implementation;
     ServiceManager::getServiceManager()->register(self::SERVICE_ID, $implementation);
 }