diff --git a/composer.json b/composer.json index 1e325452..2f104a11 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "require": { "php": "~8.3.0 || ~8.4.0 ", "nesbot/carbon": "^3.8.4", - "pimcore/pimcore": "^12.0", + "pimcore/pimcore": "^12.3", "pimcore/static-resolver-bundle": "^3.0", "pimcore/opensearch-client": "^2.0", "pimcore/elasticsearch-client": "^2.0", diff --git a/src/EventSubscriber/DebugSubscriber.php b/src/EventSubscriber/DebugSubscriber.php index 912fdb54..f90b5954 100644 --- a/src/EventSubscriber/DebugSubscriber.php +++ b/src/EventSubscriber/DebugSubscriber.php @@ -17,6 +17,7 @@ use Pimcore\Bundle\GenericDataIndexBundle\Model\DefaultSearch\Debug\SearchInformation; use Pimcore\Bundle\GenericDataIndexBundle\SearchIndexAdapter\DefaultSearch\DefaultSearchService; use Pimcore\Bundle\GenericDataIndexBundle\SearchIndexAdapter\SearchIndexServiceInterface; +use Pimcore\Helper\ParameterBagHelper; use Symfony\Component\EventDispatcher\EventSubscriberInterface; use Symfony\Component\HttpFoundation\JsonResponse; use Symfony\Component\HttpKernel\Event\ResponseEvent; @@ -48,7 +49,7 @@ public function onKernelResponse(ResponseEvent $event): void if (!Pimcore::inDebugMode() || empty($event->getRequest()->query->get(self::DEBUG_SEARCH_PARAM))) { return; } - $verbosity = $event->getRequest()->query->getInt(self::DEBUG_SEARCH_PARAM); + $verbosity = ParameterBagHelper::getInt($event->getRequest()->query, self::DEBUG_SEARCH_PARAM); $event->setResponse(new JsonResponse($this->getNormalizedSearches($verbosity))); }