From 2c7117d2d5e0094a80b2607ce6b770e7d7545705 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Sat, 19 Sep 2020 20:39:30 +0200 Subject: [PATCH] Version 0.9.5 beta - in some cases needed for re-clearing the module registry --- core/c/registry.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/c/registry.php b/core/c/registry.php index 4aef933..0bee230 100644 --- a/core/c/registry.php +++ b/core/c/registry.php @@ -119,4 +119,12 @@ final class Registry { return $this->getModulesConfig()[$module_name]; } + + /** + * @desc will reset the registry + */ + public function __destruct() + { + self::$_instance = NULL; + } } \ No newline at end of file