/** * 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)); }
/** * 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); }