mirror of
https://github.com/Karaka-Management/oms-Admin.git
synced 2026-02-13 03:08:39 +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();
|
$installedModules = $this->app->moduleManager->getActiveModules();
|
||||||
foreach ($installedModules as $name => $module) {
|
foreach ($installedModules as $name => $module) {
|
||||||
$this->app->moduleManager->reInit($name);
|
$this->app->moduleManager->reInit($name);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user