mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-06 04:28:41 +00:00
handle uninit dispatcher
This commit is contained in:
parent
e1f10bb82f
commit
0f09da42e9
|
|
@ -694,7 +694,9 @@ final class ModuleManager
|
||||||
$name = $this->generateModuleName($module);
|
$name = $this->generateModuleName($module);
|
||||||
$this->running[$name] = $this->getModuleInstance($module);
|
$this->running[$name] = $this->getModuleInstance($module);
|
||||||
|
|
||||||
$this->app->dispatcher->set($this->running[$name], '\Modules\\Controller\\' . $module . '\\' . $this->app->appName . 'Controller');
|
if ($this->app->dispatcher !== null) {
|
||||||
|
$this->app->dispatcher->set($this->running[$name], '\Modules\\Controller\\' . $module . '\\' . $this->app->appName . 'Controller');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user