fix tests
Some checks are pending
Image optimization / general_image_workflow (push) Waiting to run
CI / general_module_workflow_php (push) Waiting to run
CI / general_module_workflow_js (push) Waiting to run

This commit is contained in:
Dennis Eichhorn 2024-05-18 02:15:38 +00:00
parent ea3388aea6
commit 7fe7d0e25e

View File

@ -3143,6 +3143,9 @@ final class ApiController extends Controller
\file_put_contents($path, '<?php return [];');
}
\phpOMS\Module\StatusAbstract::$routes = [];
\phpOMS\Module\StatusAbstract::$hooks = [];
$installedModules = $this->app->moduleManager->getActiveModules();
foreach ($installedModules as $name => $_) {
$this->app->moduleManager->reInit($name);