Skip to content

Commit

Permalink
[TASK] Drop request fallbacks in viewhelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminkott committed Nov 4, 2024
1 parent fadc5b9 commit 5ef69f6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions Classes/ViewHelpers/Data/PaginateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ protected function getRequestFromRenderingContext(RenderingContextInterface $ren
{
if ($renderingContext->hasAttribute(ServerRequestInterface::class)) {
return $renderingContext->getAttribute(ServerRequestInterface::class);
} elseif ($renderingContext instanceof RenderingContext) {
/** @phpstan-ignore-next-line */
return $renderingContext->getRequest();
}

return null;
Expand Down
3 changes: 0 additions & 3 deletions Classes/ViewHelpers/FrameViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,6 @@ protected function getRequestFromRenderingContext(RenderingContextInterface $ren
{
if ($renderingContext->hasAttribute(ServerRequestInterface::class)) {
return $renderingContext->getAttribute(ServerRequestInterface::class);
} elseif ($renderingContext instanceof RenderingContext) {
/** @phpstan-ignore-next-line */
return $renderingContext->getRequest();
}

return null;
Expand Down
3 changes: 0 additions & 3 deletions Classes/ViewHelpers/Link/PaginateViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,6 @@ protected function getRequestFromRenderingContext(RenderingContextInterface $ren
{
if ($renderingContext->hasAttribute(ServerRequestInterface::class)) {
return $renderingContext->getAttribute(ServerRequestInterface::class);
} elseif ($renderingContext instanceof RenderingContext) {
/** @phpstan-ignore-next-line */
return $renderingContext->getRequest();
}

return null;
Expand Down
3 changes: 0 additions & 3 deletions Classes/ViewHelpers/TypoScript/ConstantViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ protected function getRequestFromRenderingContext(RenderingContextInterface $ren
{
if ($renderingContext->hasAttribute(ServerRequestInterface::class)) {
return $renderingContext->getAttribute(ServerRequestInterface::class);
} elseif ($renderingContext instanceof RenderingContext) {
/** @phpstan-ignore-next-line */
return $renderingContext->getRequest();
}

return null;
Expand Down

0 comments on commit 5ef69f6

Please sign in to comment.