Skip to content

Commit

Permalink
Init uriBuilder after TSFE
Browse files Browse the repository at this point in the history
  • Loading branch information
tlueder committed Mar 6, 2024
1 parent 78a177c commit 95d7d8e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/Middleware/MiddlewareActionAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public function __construct(ServerRequestInterface $request, $pathParams) {
}

$this->languageServiceFactory = GeneralUtility::makeInstance(LanguageServiceFactory::class);
$this->uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);

// Set LanguageAspect
$context = GeneralUtility::makeInstance(Context::class);
Expand Down Expand Up @@ -100,6 +99,8 @@ public function __construct(ServerRequestInterface $request, $pathParams) {
$GLOBALS['TSFE']->newCObj($this->request);
}
}

$this->uriBuilder = GeneralUtility::makeInstance(UriBuilder::class);
}

protected function getAbsPath(?FileReference $file): string {
Expand Down

0 comments on commit 95d7d8e

Please sign in to comment.