mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-01-24 11:18:41 +00:00
re-init console/socket as well
This commit is contained in:
parent
c38a88dbf4
commit
eb57e522f5
|
|
@ -719,6 +719,14 @@ final class ApiController extends Controller
|
|||
}
|
||||
}
|
||||
|
||||
if (\file_exists($path = __DIR__ . '/../../../Console/Routes.php')) {
|
||||
\file_put_contents($path, '<?php return [];');
|
||||
}
|
||||
|
||||
if (\file_exists($path = __DIR__ . '/../../../Socket/Routes.php')) {
|
||||
\file_put_contents($path, '<?php return [];');
|
||||
}
|
||||
|
||||
$installedModules = $this->app->moduleManager->getActiveModules();
|
||||
foreach ($installedModules as $name => $module) {
|
||||
$this->app->moduleManager->reInit($name);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user