Deprecation: #98371 - Deprecated Fluid getters
See forge#98371
Description
Views in a Model-View-Controller (MVC) construct should be data sinks.
Class \TYPO3\
violates this concept by
providing some get
methods that allow fetching previously set state.
The Fluid class \TYPO3\
is the main object carried around within the rendering chain to keep track
of state. It is the main data object used in view helpers.
As such, Standalone
should not allow fetching state since it allows
to be misused to park state, which is primarily a controller concern instead.
To enforce this pattern, the following methods have been marked as deprecated in TYPO3 Core v12 and will be removed in TYPO3 v13:
\TYPO3\
CMS\ Fluid\ View\ Standalone View->get Request () \TYPO3\
CMS\ Fluid\ View\ Standalone View->get Format () \TYPO3\
CMS\ Fluid\ View\ Standalone View->get Template Path And Filename ()
Impact
Calling one of the above methods triggers a PHP E_
level
error.
Affected installations
Instances with extensions using one of the above methods.
Migration
Do not misuse Standalone
as data source. Typically, controllers
should handle and keep track of state like a PSR-7 Request and set or update
view state.