Actions
Bug #99476
closedAdd getRequest to RenderingContextInterface? (>= v11)
Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2023-01-06
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
RenderingContextInterface does not contain getRequest().
If extending from AbstractViewHelper and using renderStatic, the function looks like this:
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
It should be possible to call $renderingContext->getRequest(), but then checks with phpstan will fail and you would have to check for the class name of the object (which should not really be necessary.
(Previously, it was possible to call $renderingContext->getControllerContext()->getRequest()).
Actions