Add the possibility to reset globals

This commit is contained in:
Fabien Potencier
2024-09-07 15:05:45 +02:00
parent 6a76881e05
commit ef58791fa4
6 changed files with 52 additions and 6 deletions
+5
View File
@@ -339,6 +339,11 @@ final class ExtensionSet
return $globals;
}
public function resetGlobals(): void
{
$this->globals = null;
}
public function addTest(TwigTest $test): void
{
if ($this->initialized) {