Initialize Hooks on the init action
This commit is contained in:
committed by
M. Shull
parent
c5f991658e
commit
7418543694
@@ -163,6 +163,7 @@ class Initializer {
|
|||||||
try {
|
try {
|
||||||
$this->renderer = $this->renderer_factory->getRenderer();
|
$this->renderer = $this->renderer_factory->getRenderer();
|
||||||
$this->setupWidget();
|
$this->setupWidget();
|
||||||
|
$this->hooks->init();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->handleFailedInitialization($e);
|
$this->handleFailedInitialization($e);
|
||||||
}
|
}
|
||||||
@@ -270,7 +271,6 @@ class Initializer {
|
|||||||
function postInitialize() {
|
function postInitialize() {
|
||||||
if (!defined(self::INITIALIZED)) return;
|
if (!defined(self::INITIALIZED)) return;
|
||||||
try {
|
try {
|
||||||
$this->hooks->init();
|
|
||||||
$this->api->init();
|
$this->api->init();
|
||||||
$this->router->init();
|
$this->router->init();
|
||||||
$this->setupUserLocale();
|
$this->setupUserLocale();
|
||||||
|
Reference in New Issue
Block a user