handle uninit dispatcher

This commit is contained in:
Dennis Eichhorn 2019-12-19 20:11:25 +01:00
parent e1f10bb82f
commit 0f09da42e9

View File

@ -694,7 +694,9 @@ final class ModuleManager
$name = $this->generateModuleName($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');
}
}
/**