parent
965fee1e9e
commit
1e1d4531c6
|
@ -89,7 +89,7 @@ class Web extends EmbeddedWeb
|
||||||
->setupLogger()
|
->setupLogger()
|
||||||
->setupInternationalization()
|
->setupInternationalization()
|
||||||
->setupZendMvc()
|
->setupZendMvc()
|
||||||
->setupFormNamespace()
|
->setupNamespaces()
|
||||||
->setupModuleManager()
|
->setupModuleManager()
|
||||||
->setupUserBackendFactory()
|
->setupUserBackendFactory()
|
||||||
->loadSetupModuleIfNecessary()
|
->loadSetupModuleIfNecessary()
|
||||||
|
@ -298,13 +298,19 @@ class Web extends EmbeddedWeb
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setup an autoloader namespace for Icinga\Forms
|
* Setup auto loader namespaces for Icinga\Controllers and Icinga\Forms
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
private function setupFormNamespace()
|
private function setupNamespaces()
|
||||||
{
|
{
|
||||||
$this->getLoader()->registerNamespace(
|
$this
|
||||||
|
->getLoader()
|
||||||
|
->registerNamespace(
|
||||||
|
'Icinga\\Controllers',
|
||||||
|
$this->getApplicationDir('controllers')
|
||||||
|
)
|
||||||
|
->registerNamespace(
|
||||||
'Icinga\\Forms',
|
'Icinga\\Forms',
|
||||||
$this->getApplicationDir('forms')
|
$this->getApplicationDir('forms')
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue