From 3b5664419183b77859c30ebeba19bc9bce247994 Mon Sep 17 00:00:00 2001 From: Christian Seel Date: Wed, 3 Apr 2024 12:39:01 +0200 Subject: [PATCH] Invoke OnContextInit --- core/src/Revolution/modX.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/src/Revolution/modX.php b/core/src/Revolution/modX.php index 08af9fd04ea..4670be19cab 100644 --- a/core/src/Revolution/modX.php +++ b/core/src/Revolution/modX.php @@ -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; }