Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Prevent TYPO3v11 controllerContext deprecation notice #2197

Conversation

cweiske
Copy link
Contributor

@cweiske cweiske commented Dec 4, 2024

When using flux 10.0.10 on TYPO3v11, the deprecation log is full of

TYPO3 Deprecation Notice:
Setting request from controllerContext in class
TYPO3\CMS\Fluid\Core\Rendering\RenderingContext is deprecated.
Use setRequest() directly.
in typo3/sysext/fluid/Classes/Core/Rendering/RenderingContext.php line 205

The deprecation notice is only triggered when the context has no request yet.

To get rid of this notice, we simply set the request before setting the controller context.

When using flux 10.0.10 on TYPO3v11, the deprecation log is full of
> TYPO3 Deprecation Notice:
> Setting request from controllerContext in class
> TYPO3\CMS\Fluid\Core\Rendering\RenderingContext is deprecated.
> Use setRequest() directly.
> in typo3/sysext/fluid/Classes/Core/Rendering/RenderingContext.php line 205

The deprecation notice is only triggered when the context has no request yet.

To get rid of this notice, we simply set the request before setting the
controller context.
@NamelessCoder NamelessCoder merged commit b0573ba into FluidTYPO3:development Dec 9, 2024
14 checks passed
@cweiske cweiske deleted the v11-context-request-deprecation branch December 9, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants