From 11e4aa396f20a39e7de5daf044a0fe6c9c3d1e31 Mon Sep 17 00:00:00 2001 From: Valerio Barbera Date: Mon, 9 Dec 2024 15:32:36 +0100 Subject: [PATCH] fix segment creation on kernel response --- src/DependencyInjection/InspectorExtension.php | 2 +- src/Listeners/KernelEventsSubscriber.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DependencyInjection/InspectorExtension.php b/src/DependencyInjection/InspectorExtension.php index 04937c2..b31d7cb 100644 --- a/src/DependencyInjection/InspectorExtension.php +++ b/src/DependencyInjection/InspectorExtension.php @@ -22,7 +22,7 @@ class InspectorExtension extends Extension /** * Current version of the bundle. */ - const VERSION = '1.3.3'; + const VERSION = '1.3.4'; /** * Loads a specific configuration. diff --git a/src/Listeners/KernelEventsSubscriber.php b/src/Listeners/KernelEventsSubscriber.php index dbe00a0..2c0bf4a 100644 --- a/src/Listeners/KernelEventsSubscriber.php +++ b/src/Listeners/KernelEventsSubscriber.php @@ -235,7 +235,7 @@ public function setAuthUserInfo(RequestEvent $event): void */ public function onKernelResponse(ResponseEvent $event): void { - if (!$this->inspector->canAddSegments() && $this->isMasterMainRequest($event)) { + if (!$this->inspector->canAddSegments() && !$this->isMasterMainRequest($event)) { return; }