Skip to content

Commit

Permalink
adjust readme
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Sep 22, 2023
1 parent 681c6d9 commit 09354b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/00_Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 09354b9

Please sign in to comment.