From d6de4dc6ff8cefad6bc23fa60f395971b136d307 Mon Sep 17 00:00:00 2001 From: Axel Guckelsberger Date: Tue, 1 Jun 2021 09:51:26 +0200 Subject: [PATCH] renamed method for Symfony 5.3+ --- Helper/ParameterHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helper/ParameterHelper.php b/Helper/ParameterHelper.php index 1905fc7..347e8ff 100644 --- a/Helper/ParameterHelper.php +++ b/Helper/ParameterHelper.php @@ -145,7 +145,7 @@ public function finalizeParameters(): bool */ private function configureRequestContext(array &$params): void { - $request = $this->requestStack->getMasterRequest(); + $request = $this->requestStack->getMainRequest(); $hostFromRequest = isset($request) ? $request->getHost() : 'localhost'; $schemeFromRequest = isset($request) ? $request->getScheme() : 'http'; $basePathFromRequest = isset($request) ? $request->getBasePath() : null;