Let our module autloader know that we renamed our form namespaces

refs #7553
This commit is contained in:
Johannes Meyer 2014-11-14 11:30:44 +01:00
parent 3166c518e1
commit 586b4f463b
2 changed files with 2 additions and 2 deletions

View File

@ -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()
);
}

View File

@ -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);
}
}