Let our module autloader know that we renamed our form namespaces
refs #7553
This commit is contained in:
parent
3166c518e1
commit
586b4f463b
|
@ -763,7 +763,7 @@ class Module
|
|||
$this->app->getLoader()->registerNamespace('Icinga\\Module\\' . $moduleName, $moduleLibraryDir);
|
||||
if (is_dir($this->getFormDir())) {
|
||||
$this->app->getLoader()->registerNamespace(
|
||||
'Icinga\\Module\\' . $moduleName. '\\Form',
|
||||
'Icinga\\Module\\' . $moduleName. '\\Forms',
|
||||
$this->getFormDir()
|
||||
);
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ foreach ($modules as $module) {
|
|||
|
||||
$moduleFormPath = $modulePath . '/' . $module . '/application/forms';
|
||||
if (is_dir($moduleFormPath)) {
|
||||
$loader->registerNamespace($moduleNamespace . '\\Form', $moduleFormPath);
|
||||
$loader->registerNamespace($moduleNamespace . '\\Forms', $moduleFormPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue