TYPO3 / Fluid

Fluid template rendering engine - Standalone version
GNU Lesser General Public License v3.0
152 stars 93 forks source link

Streamline ViewHelper API #1003

Open s2b opened 1 month ago

s2b commented 1 month ago

Apart from the deprecation of renderStatic() and some minor changes under the hood, the AbstractViewHelper has been largely unaffected by TYPO3 v4. With the next major version, we might consider streamlining the user-facing ViewHelper API, while removing internal implementation details from the class (such as caches and some internal state).

We might also think about providing shortcuts to commonly used API in ViewHelpers and even a shortcut for getRequest() and some kind of API to make sure that the request is available. However, we should discuss before if we would like to make Fluid slightly "request-aware" by depending on the PSR interfaces for that.