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 Object in File/FileController
Use ServerRequestInterface object introduced earlier throughout the controller instead accessing the global variables directly. Visibility of properties and methods became more restrictive and will report external usage by throwing deprecated errors. Change-Id: I68f220c4b7bb097006118d2b2065ab9f4e554b8f Resolves: #84324 Releases: master Reviewed-on: https://review.typo3.org/56208 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Łukasz Uznański <l.uznanski@macopedia.pl> Tested-by: Łukasz Uznański <l.uznanski@macopedia.pl> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
4 changed files
with
170 additions
and
85 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
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
41 changes: 41 additions & 0 deletions
41
...elog/master/Deprecation-84324-UseServerRequestInterfaceInFileFileController.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,41 @@ | ||
.. include:: ../../Includes.txt | ||
|
||
======================================================================= | ||
Deprecation: #84324 - Use ServerRequestInterface in File/FileController | ||
======================================================================= | ||
|
||
See :issue:`84324` | ||
|
||
|
||
Description | ||
=========== | ||
|
||
All methods not used as entry points by :php:`TYPO3\CMS\Backend\Http\RouteDispatcher` will be | ||
removed or set to protected in v10 and throw deprecation warnings if used from a third party: | ||
|
||
* [not scanned] :php:`main()` | ||
* :php: `initClipboard()` | ||
* :php: `finish()` | ||
|
||
Impact | ||
====== | ||
|
||
Calling one of the above methods on an instance of | ||
:php:`FileController` will throw a deprecation warning in v9 and a PHP fatal in v10. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
The extension scanner will find most usages, but may also find some false positives. In general all extensions | ||
that call methods except :php:`mainAction()` are affected. | ||
|
||
|
||
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 |
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