Initialize Hooks on the init action

This commit is contained in:
Amine Ben hammou
2019-07-04 08:27:25 +01:00
committed by M. Shull
parent c5f991658e
commit 7418543694

View File

@@ -163,6 +163,7 @@ class Initializer {
try {
$this->renderer = $this->renderer_factory->getRenderer();
$this->setupWidget();
$this->hooks->init();
} catch (\Exception $e) {
$this->handleFailedInitialization($e);
}
@@ -270,7 +271,6 @@ class Initializer {
function postInitialize() {
if (!defined(self::INITIALIZED)) return;
try {
$this->hooks->init();
$this->api->init();
$this->router->init();
$this->setupUserLocale();