Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[!!!][TASK] Remove CMS base ViewHelper classes
This patch sacrifices two features: * Having $this->controllerContext on ViewHelpers * Support for render method arguments And by doing so, allows the removal of every CMS base ViewHelper class and several overrides they implement. The base classes are still available as class aliases to limit the breaking change to the two features mentioned above. Change-Id: I425b01234618f83d701ec6dd99ce3bf7ce514589 Resolves: #82414 Releases: master Reviewed-on: https://review.typo3.org/54068 Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Georg Ringer <georg.ringer@gmail.com>
- Loading branch information
1 parent
ea436df
commit 533a1a3
Showing
31 changed files
with
179 additions
and
995 deletions.
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
...ocumentation/Changelog/master/Breaking-82414-RemoveCMSBaseViewHelperClasses.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
====================================================== | ||
Breaking: #82414 - CMS ViewHelper base classes removed | ||
====================================================== | ||
|
||
See :issue:`82414` | ||
|
||
Description | ||
=========== | ||
|
||
The following ViewHelper base classes have been removed: | ||
|
||
- :php:`TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper` | ||
- :php:`TYPO3\CMS\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper` | ||
- :php:`TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper` | ||
- :php:`TYPO3\CMS\Fluid\Core\ViewHelper\ArgumentDefinition` | ||
|
||
Aliases are in place, but the following key differences may break your code: | ||
|
||
- Render method arguments are no longer possible at all | ||
- The property :php:`$this->controllerContext` is no longer defined | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Render method arguments have been deprecated for a long time and should already have been migrated | ||
in your code. If you still have ViewHelpers using render method arguments, these will break | ||
after this change. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
All instances which use a ViewHelper that either contains render method arguments, extends from one | ||
of the base classes above, or or accesses :php:`$this->controllerContext`. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
Migrate to use `renderStatic` methods (see examples in TYPO3 Core, EXT:fluid) to not use | ||
render method arguments. | ||
|
||
|
||
ViewHelpers which access :php:`$this->controllerContext` can instead access | ||
:php:`$this->renderingContext->getControllerContext()`. | ||
|
||
Migrating this can be done with search-and-replace for all common use cases. | ||
|
||
.. index:: Fluid, NotScanned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
55 changes: 0 additions & 55 deletions
55
typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractConditionViewHelper.php
This file was deleted.
Oops, something went wrong.
138 changes: 0 additions & 138 deletions
138
typo3/sysext/fluid/Classes/Core/ViewHelper/AbstractTagBasedViewHelper.php
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.