mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
Fix #132
This commit is contained in:
parent
9cec1628b7
commit
4a766b6cf0
|
|
@ -419,13 +419,13 @@ class ModuleManager
|
|||
public function reInit(string $module) : bool
|
||||
{
|
||||
$info = $this->loadInfo($module);
|
||||
/** @var $class InstallerAbstract */
|
||||
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
||||
|
||||
if (!Autoloader::exists($class)) {
|
||||
throw new InvalidModuleException($info->getDirectory());
|
||||
}
|
||||
|
||||
/** @var $class InstallerAbstract */
|
||||
$class::reInit($this->modulePath, $info);
|
||||
}
|
||||
|
||||
|
|
@ -511,13 +511,13 @@ class ModuleManager
|
|||
*/
|
||||
private function installModule(InfoManager $info) /* : void */
|
||||
{
|
||||
/** @var $class InstallerAbstract */
|
||||
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
||||
|
||||
if (!Autoloader::exists($class)) {
|
||||
throw new InvalidModuleException($info->getDirectory());
|
||||
}
|
||||
|
||||
/** @var $class InstallerAbstract */
|
||||
$class::install($this->modulePath, $this->app->dbPool, $info);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user