From cf9e09bbf825501dc6212347b0c3935f033d59bd Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Thu, 30 May 2024 18:14:06 +0200 Subject: [PATCH] decorate response exception listener properly --- UPGRADE.md | 10 ++-------- src/I18nBundle/Resources/config/services/event.yml | 8 +++----- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index cc909a6..3c5a29c 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,32 +1,26 @@ # Upgrade Notes +## 4.1.12 +- [BUGFIX] Fix exception handler decoration ## 4.1.11 - [IMPROVEMENT] Add locale and site automatically in export mode (xliff, word export), based on given document - ## 4.1.10 - [BUGFIX] Fix exception handler priority to prevent authentication exception hijacking - ## 4.1.9 - [BUGFIX] Move preview listener to earlier state to allow static route preview with restricted sites - ## 4.1.8 - [BUGFIX] Reinstated HTTP error logging for SEO - ## 4.1.7 - [BUGFIX] resolve site and locale in areabrick-render-index-editmode route [#132](https://github.com/dachcom-digital/pimcore-i18n/issues/132) - ## 4.1.6 - [BUGFIX] Follow-Up: Object Preview Improvements (Also suppress exception in document context) [#126](https://github.com/dachcom-digital/pimcore-i18n/pull/126) - [IMPROVEMENT] Relay on main request, always check for request parameters (site, locale) as long request is available [#124](https://github.com/dachcom-digital/pimcore-i18n/pull/124) - [IMPROVEMENT] Introduce AdminSiteResolver to provide Sites in editmode if possible [#123](https://github.com/dachcom-digital/pimcore-i18n/pull/123) - ## 4.1.5 - [BUGFIX] Object Preview Improvements [#126](https://github.com/dachcom-digital/pimcore-i18n/pull/126) - [ENHANCEMENT] Improve requirements for AbstractRequestAwareLinkGenerator [#122](https://github.com/dachcom-digital/pimcore-i18n/issues/122) - ## 4.1.4 - [BUGFIX] Improve `isFrontendRequestByAdmin` determination and reduce redundancy - ## 4.1.3 - [BUGFIX] Zone Settings: Use fallback for translations [#114](https://github.com/dachcom-digital/pimcore-i18n/issues/114) - [BUGFIX] Allow parameters for translation config [#115](https://github.com/dachcom-digital/pimcore-i18n/issues/115) diff --git a/src/I18nBundle/Resources/config/services/event.yml b/src/I18nBundle/Resources/config/services/event.yml index cb1cb42..1943e5f 100644 --- a/src/I18nBundle/Resources/config/services/event.yml +++ b/src/I18nBundle/Resources/config/services/event.yml @@ -56,9 +56,7 @@ services: - { name: kernel.event_subscriber } # override pimcore not found exception handling - Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener: - class: I18nBundle\EventListener\Frontend\ResponseExceptionListener + I18nBundle\EventListener\Frontend\ResponseExceptionListener: + decorates: Pimcore\Bundle\CoreBundle\EventListener\ResponseExceptionListener calls: - - [ setLogger, [ '@logger' ] ] - tags: - - { name: kernel.event_subscriber } \ No newline at end of file + - [ setLogger, [ '@logger' ] ] \ No newline at end of file