From f800b6661d0682d213533ae5238ce3a94263149e Mon Sep 17 00:00:00 2001 From: Bram Pauwels Date: Tue, 17 Mar 2026 08:41:35 +0100 Subject: [PATCH] Fix undefined method calls in Symfony 8 ``` Call to undefined method Symfony\Component\HttpFoundation\Request::get() ``` --- Controller/AuthorizeController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller/AuthorizeController.php b/Controller/AuthorizeController.php index f7c6c60b..6b79897b 100644 --- a/Controller/AuthorizeController.php +++ b/Controller/AuthorizeController.php @@ -85,7 +85,7 @@ public function authorizeAction(Request $request, AuthorizeFormHandler $formHand ); if ($event->isAuthorizedClient()) { - $scope = $request->get('scope'); + $scope = $request->query->get('scope'); return $this->oAuth2Server->finishClientAuthorization(true, $user, $request, $scope); } @@ -144,8 +144,8 @@ protected function getClient(): ClientInterface $request = $this->getCurrentRequest(); - if (null === $clientId = $request->get('client_id')) { - $formData = $request->get($this->authorizeForm->getName(), []); + if (null === $clientId = $request->query->get('client_id')) { + $formData = $request->request->all($this->authorizeForm->getName()); $clientId = $formData['client_id'] ?? null; }