From e83a9f3075e9a8d65593ffeffa3f419482835b2c Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Thu, 30 May 2024 18:31:56 +0200 Subject: [PATCH] decorate response exception listener properly (#160) --- UPGRADE.md | 5 ++--- config/services/event.yaml | 6 ++---- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/UPGRADE.md b/UPGRADE.md index e0221d2..afc6c46 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,15 +1,14 @@ # Upgrade Notes +## 5.0.5 +- [BUGFIX] Fix exception handler decoration ## 5.0.4 - [IMPROVEMENT] Add locale and site automatically in export mode (xliff, word export), based on given document - ## 5.0.3 - [BUGFIX] Fix exception handler priority to prevent authentication exception hijacking - [BUGFIX] Revert [#af8bfe7](https://github.com/dachcom-digital/pimcore-i18n/commit/af8bfe74488fd85ebcdb14e4300f3a9f7ddc7dbe) - ## 5.0.2 - fixed bug when no locale url mapping is available [#153](https://github.com/dachcom-digital/pimcore-i18n/pull/153) - ## 5.0.1 - Remove `isEnabled` and `setEnabled` from redirector adapter since disabled services aren't available anymore [#149](https://github.com/dachcom-digital/pimcore-i18n/issues/149) - Remove legacy mode check in profiler [#150](https://github.com/dachcom-digital/pimcore-i18n/issues/150) diff --git a/config/services/event.yaml b/config/services/event.yaml index cb1cb42..8791deb 100644 --- a/config/services/event.yaml +++ b/config/services/event.yaml @@ -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