mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 08:44:10 +02:00
Application\Web: less assistance for class loader
This commit is contained in:
parent
05b7388a18
commit
9270ef6d6f
@ -91,7 +91,6 @@ class Web extends EmbeddedWeb
|
|||||||
->setupLogger()
|
->setupLogger()
|
||||||
->setupInternationalization()
|
->setupInternationalization()
|
||||||
->setupZendMvc()
|
->setupZendMvc()
|
||||||
->setupNamespaces()
|
|
||||||
->setupModuleManager()
|
->setupModuleManager()
|
||||||
->loadSetupModuleIfNecessary()
|
->loadSetupModuleIfNecessary()
|
||||||
->loadEnabledModules()
|
->loadEnabledModules()
|
||||||
@ -346,6 +345,7 @@ class Web extends EmbeddedWeb
|
|||||||
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
|
'layoutPath' => $this->getApplicationDir('/layouts/scripts')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
$this->setupFrontController();
|
$this->setupFrontController();
|
||||||
$this->setupViewRenderer();
|
$this->setupViewRenderer();
|
||||||
return $this;
|
return $this;
|
||||||
@ -492,24 +492,4 @@ class Web extends EmbeddedWeb
|
|||||||
}
|
}
|
||||||
return Translator::DEFAULT_LOCALE;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user