From 09354b9b3c12fc75e82c144e1070fb51f277d817 Mon Sep 17 00:00:00 2001 From: Stefan Hagspiel Date: Fri, 22 Sep 2023 18:03:40 +0200 Subject: [PATCH] adjust readme --- docs/00_Setup.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/00_Setup.md b/docs/00_Setup.md index f1fbc60d..7057c489 100644 --- a/docs/00_Setup.md +++ b/docs/00_Setup.md @@ -91,9 +91,9 @@ class ObjectLinkGenerator implements LinkGeneratorInterface $connectorContextConfig = $connectorContextItem->getContextDefinition(); } - $masterRequest = \Pimcore::getContainer()->get('request_stack')->getMasterRequest(); + $mainRequest = \Pimcore::getContainer()->get('request_stack')->getMainRequest(); - $baseLocale = isset($params['_locale']) ? $params['_locale'] : $masterRequest->getLocale(); + $baseLocale = isset($params['_locale']) ? $params['_locale'] : $mainRequest->getLocale(); $baseHost = isset($params['host']) ? $params['host'] : null; $locale = $connectorContextConfig !== null ? $connectorContextConfig->getLocale() : $baseLocale;