From 06918e148e3a8c114ac8485e0704a9a7210c73f1 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 26 Jul 2024 19:10:48 +0400 Subject: [PATCH] Allow ModuleManager to require Module config file more than once --- src/Libraries/Module/ModuleManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/Module/ModuleManager.php b/src/Libraries/Module/ModuleManager.php index 516b18b8..d77b9d7b 100644 --- a/src/Libraries/Module/ModuleManager.php +++ b/src/Libraries/Module/ModuleManager.php @@ -42,7 +42,7 @@ public function writeContents() public function addModuleConfig() { $modulesConfigPath = base_dir() . DS . 'shared' . DS . 'config' . DS . 'modules.php'; - $modules = require_once $modulesConfigPath; + $modules = require $modulesConfigPath; foreach ($modules['modules'] as $module => $options) { if ($module == $this->moduleName || $options['prefix'] == strtolower($this->moduleName)) {