Deprecation: #95139 - Extbase ControllerContext¶
See Issue #95139
The Extbase related class
has been used in the past to transfer data between Extbase controllers and Fluid
views. It has been superseded by class
with various preparation patches. To further decouple Fluid from Extbase, class
ControllerContext has been marked as deprecated.
ControllerContext and consuming information carried in it has
been marked as deprecated. The class will be removed in TYPO3 v12. The object is bound
to various Fluid view related classes and all occurrences have been marked with
To retain backwards compatibility, accessing
ControllerContext does not
actively trigger a PHP
E_USER_DEPRECATED error in most cases, though.
Instances with extensions that access
ControllerContext are affected. This
typically affects extensions which provide own view-helpers. The extension scanner
should find possible matches.
Two getters of the class have already been marked as deprecated with previous patches, namely
->getUriBuilder() as documented with
should inject instances of these objects instead, or should
getRequest() is available in controllers directly, and view-helpers
receive the current request by calling
getArguments() returns the Extbase
Arguments created by the
ActionController. The getter has become mostly useless within Fluid context
since argument validation of forms is abstracted differently since various core versions.
If that object construct is still needed, it should be transferred differently to
consuming classes, for instance by assigning it as variable to the view and accessing
it in a view-helper using the variable container. In many cases it should be sufficient
to directly work with the request object instead.