mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-11 14:38:39 +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
|
public function reInit(string $module) : bool
|
||||||
{
|
{
|
||||||
$info = $this->loadInfo($module);
|
$info = $this->loadInfo($module);
|
||||||
/** @var $class InstallerAbstract */
|
|
||||||
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
||||||
|
|
||||||
if (!Autoloader::exists($class)) {
|
if (!Autoloader::exists($class)) {
|
||||||
throw new InvalidModuleException($info->getDirectory());
|
throw new InvalidModuleException($info->getDirectory());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var $class InstallerAbstract */
|
||||||
$class::reInit($this->modulePath, $info);
|
$class::reInit($this->modulePath, $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -511,13 +511,13 @@ class ModuleManager
|
||||||
*/
|
*/
|
||||||
private function installModule(InfoManager $info) /* : void */
|
private function installModule(InfoManager $info) /* : void */
|
||||||
{
|
{
|
||||||
/** @var $class InstallerAbstract */
|
|
||||||
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
$class = '\\Modules\\' . $info->getDirectory() . '\\Admin\\Installer';
|
||||||
|
|
||||||
if (!Autoloader::exists($class)) {
|
if (!Autoloader::exists($class)) {
|
||||||
throw new InvalidModuleException($info->getDirectory());
|
throw new InvalidModuleException($info->getDirectory());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** @var $class InstallerAbstract */
|
||||||
$class::install($this->modulePath, $this->app->dbPool, $info);
|
$class::install($this->modulePath, $this->app->dbPool, $info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user