Skip to content

Commit 60c4c99

Browse files
Fix request parameter method call in GuideController (#46)
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()`.
1 parent dedaa60 commit 60c4c99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Controller/GuideController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function detailAction(string $shortcode, Request $request): Response
6363
$shortcodeTag = $this->shortcodeTags[$shortcode];
6464

6565
// if custom parameters are provided, replace the example
66-
$customParameters = $request->get('customParameters');
66+
$customParameters = $request->query->get('customParameters');
6767
if ($customParameters) {
6868
$shortcodeTag['example'] = $shortcode.' '.$customParameters;
6969
}

0 commit comments

Comments
 (0)