-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Use ServerRequestInterface in Wizard/EditController
This patch changes the EditController to consistently use ServerRequestInterface instead of GeneralUtility and HttpUtility. The method main() is kept to keep this change non-breaking, it translates the given response objects back to strings/redirects which match existing behaviour. Also, to prepare for refactoring in v10, main() and the new protected properties will throw a deprecation notice if called. Resolves: #84327 Releases: master Change-Id: I9bd055f4a81e5f9ca324954bc03206c9f463cb11 Reviewed-on: https://review.typo3.org/56232 Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
3 changed files
with
121 additions
and
16 deletions.
There are no files selected for viewing
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
45 changes: 45 additions & 0 deletions
45
...eprecation-84327-DeprecatedPublicMethodsAndPropertiesInWizardEditController.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,45 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
======================================================================================= | ||
Deprecation: #84327 - Deprecated public methods and properties in Wizard/EditController | ||
======================================================================================= | ||
|
||
See :issue:`84327` | ||
|
||
Description | ||
=========== | ||
|
||
This file is about third party usage (consumer that call the class as well as | ||
signals or hooks depending on it) of :php:`TYPO3\CMS\Backend\Controller\Wizard\EditController`. | ||
|
||
A series of class properties has been set to protected. | ||
They will throw deprecation warnings if called public from outside: | ||
|
||
* [not scanned] :php:`$P` | ||
* :php:`$doClose` | ||
|
||
The following method will be refactored/set to protected in v10 and should no longer be used: | ||
|
||
* [not scanned] :php:`main()` | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling one of the above methods or accessing one of the above properties on an instance of | ||
:php:`Wizard/EditController` will throw a deprecation warning in v9 and a PHP fatal in v10. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
The extension scanner will detect only detect usage of :php:`$doClose`, other calls are not scanned to prevent false positives. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
In general, extensions should not instantiate and re-use controllers of the core. Existing | ||
usages should be rewritten to be free of calls like these. | ||
|
||
.. index:: Backend, PHP-API, PartiallyScanned, ext:backend |
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