diff --git a/app/Mage.php b/app/Mage.php index 60b63294ec5..0c8564f9b7d 100644 --- a/app/Mage.php +++ b/app/Mage.php @@ -745,7 +745,7 @@ public static function run($code = '', $type = 'store', $options = []) if (isset($options['edition'])) { self::$_currentEdition = $options['edition']; } - self::$_app = new Mage_Core_Model_App(); + self::$_app = new Mage_Core_Model_App(); if (isset($options['request'])) { self::$_app->setRequest($options['request']); } @@ -769,6 +769,7 @@ public static function run($code = '', $type = 'store', $options = []) die(); } catch (Exception $e) { if (self::isInstalled()) { + self::dispatchEvent('mage_run_installed_exception', ['exception' => $e]); self::printException($e); exit(); } diff --git a/docs/EVENTS.md b/docs/EVENTS.md index 211975bbcad..63f7aa8a314 100644 --- a/docs/EVENTS.md +++ b/docs/EVENTS.md @@ -235,6 +235,7 @@ | log_log_clean_after | 1.9.4.5 | | log_log_clean_before | 1.9.4.5 | | log_visitor_collection_load_before | 1.9.4.5 | +| mage_run_installed_exception | 20.7.0 | | mage_run_exception | 1.9.4.5 | | model_config_data_save_before | 1.9.4.5 | | model_delete_after | 1.9.4.5 |