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