Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New feature: added mage_run_installed_exception event when uncatched exception is thrown #3613

Merged
merged 5 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
fballiano marked this conversation as resolved.
Show resolved Hide resolved
if (isset($options['request'])) {
self::$_app->setRequest($options['request']);
}
Expand All @@ -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();
}
Expand Down
1 change: 1 addition & 0 deletions docs/EVENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
Loading