TemplateRepository: Let us clear the instance cache

This commit is contained in:
Markus Frosch 2018-09-04 14:30:06 +02:00 committed by Thomas Gelf
parent 76e353c9fb
commit 039a6c8660
2 changed files with 10 additions and 0 deletions

View File

@ -114,4 +114,9 @@ class IcingaTemplateRepository
return $db->fetchCol($query);
}
public static function clear()
{
static::clearInstances();
}
}

View File

@ -91,4 +91,9 @@ trait RepositoryByObjectHelper
return self::$auth;
}
protected static function clearInstances()
{
self::$instances = [];
}
}