Skip to content

Commit

Permalink
Invoke OnContextInit
Browse files Browse the repository at this point in the history
  • Loading branch information
christianseel authored Apr 3, 2024
1 parent c9b10dc commit 3b56644
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/src/Revolution/modX.php
Original file line number Diff line number Diff line change
Expand Up @@ -2623,6 +2623,14 @@ protected function _initContext($contextKey, $regenerate = false, $options = nul
if (!is_null($debug) && $debug !== '') {
$this->setDebug($debug);
}

$this->invokeEvent(
'OnContextInit',
[
'contextKey' => $contextKey,
'options' => $options,
]
);
}
return $initialized;
}
Expand Down

0 comments on commit 3b56644

Please sign in to comment.