Application\Web: less assistance for class loader

This commit is contained in:
Thomas Gelf 2015-11-12 17:34:11 +01:00
parent 05b7388a18
commit 9270ef6d6f
1 changed files with 1 additions and 21 deletions

View File

@ -91,7 +91,6 @@ class Web extends EmbeddedWeb
->setupLogger()
->setupInternationalization()
->setupZendMvc()
->setupNamespaces()
->setupModuleManager()
->loadSetupModuleIfNecessary()
->loadEnabledModules()
@ -346,6 +345,7 @@ class Web extends EmbeddedWeb
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
)
);
$this->setupFrontController();
$this->setupViewRenderer();
return $this;
@ -492,24 +492,4 @@ class Web extends EmbeddedWeb
}
return Translator::DEFAULT_LOCALE;
}
/**
* Setup class loader namespaces for Icinga\Controllers and Icinga\Forms
*
* @return $this
*/
private function setupNamespaces()
{
$this
->getLoader()
->registerNamespace(
'Icinga\\' . Dispatcher::CONTROLLER_NAMESPACE,
$this->getApplicationDir('controllers')
)
->registerNamespace(
'Icinga\\Forms',
$this->getApplicationDir('forms')
);
return $this;
}
}