Skip to content

Commit

Permalink
Store the server request object in $GLOBALS['TYPO3_REQUEST'] (Fix #74)
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Apr 25, 2023
1 parent ccc9234 commit 6214f98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/Http/RestMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class RestMiddleware implements MiddlewareInterface
public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
{
if ($this->isRestRequest($request)) {
$GLOBALS['TYPO3_REQUEST'] = $request;
$middlewareBootstrap = new MiddlewareBootstrap();
$frontendController = $middlewareBootstrap->bootstrapCore($request);
$languageEnhancedRequest = $middlewareBootstrap->bootstrapLanguage($frontendController, $request);
Expand Down

0 comments on commit 6214f98

Please sign in to comment.