From 312d61619396381564cc847204ad7e404aea803d Mon Sep 17 00:00:00 2001 From: Fabian Schmick Date: Fri, 20 Mar 2026 08:40:15 +0100 Subject: [PATCH] Fix request parameter method call in `GuideController` The method [`$request->get()`](https://symfony.com/blog/new-in-symfony-7-4-request-class-improvements#deprecated-the-get-method) was removed in Symfony >= 8. Internal the method used either `$this->attributes->get()` or `$this->query->get()` or `$this->request->get()`. In this case we need to call `$request->query->get()`. --- src/Controller/GuideController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/GuideController.php b/src/Controller/GuideController.php index 690ba21..3a1f101 100644 --- a/src/Controller/GuideController.php +++ b/src/Controller/GuideController.php @@ -63,7 +63,7 @@ public function detailAction(string $shortcode, Request $request): Response $shortcodeTag = $this->shortcodeTags[$shortcode]; // if custom parameters are provided, replace the example - $customParameters = $request->get('customParameters'); + $customParameters = $request->query->get('customParameters'); if ($customParameters) { $shortcodeTag['example'] = $shortcode.' '.$customParameters; }