MDL-30545/ MDL-36199 reset plugin manager singletons
This commit is contained in:
committed by
Dan Poltawski
parent
af698e64d2
commit
95f6a022ca
@@ -88,6 +88,16 @@ class plugin_manager {
|
||||
return self::$singletoninstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset any caches
|
||||
* @param bool $phpunitreset
|
||||
*/
|
||||
public static function reset_caches($phpunitreset = false) {
|
||||
if ($phpunitreset) {
|
||||
self::$singletoninstance = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a tree of known plugins and information about them
|
||||
*
|
||||
@@ -649,6 +659,16 @@ class available_update_checker {
|
||||
return self::$singletoninstance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Reset any caches
|
||||
* @param bool $phpunitreset
|
||||
*/
|
||||
public static function reset_caches($phpunitreset = false) {
|
||||
if ($phpunitreset) {
|
||||
self::$singletoninstance = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the timestamp of the last execution of {@link fetch()}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user