Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Deprecate PageRepository->getExtURL()
PageRepository->getExtURL() is a pretty upgly public helper method that has a depedency to $GLOBALS['TYPO3_REQUEST']. It is used only once. The patch moves the method body to the consuming class and deprecates it. Resolves: #99558 Releases: main Change-Id: I7c1e8d6b1a454950de6fa7469d13fbab81ee2962 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77330 Reviewed-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: Oliver Bartsch <bo@cedev.de> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Reviewed-by: Oliver Bartsch <bo@cedev.de> Tested-by: Jasmina Ließmann <minapokhalo+typo3@gmail.com> Tested-by: core-ci <typo3@b13.com>
- Loading branch information
Showing
5 changed files
with
77 additions
and
5 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
40 changes: 40 additions & 0 deletions
40
...entation/Changelog/12.2/Deprecation-99558-DeprecatePageRepository-getExtURL.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,40 @@ | ||
.. include:: /Includes.rst.txt | ||
|
||
.. _deprecation-99558-1673887807: | ||
|
||
=========================================================== | ||
Deprecation: #99558 - Deprecate PageRepository->getExtURL() | ||
=========================================================== | ||
|
||
See :issue:`99558` | ||
|
||
Description | ||
=========== | ||
|
||
The method :php:`\TYPO3\CMS\Core\Domain\Repository\PageRepository->getExtURL()` | ||
has been marked as deprecated and should not be used any longer. | ||
|
||
|
||
Impact | ||
====== | ||
|
||
Calling the method triggers a deprecation level log message since | ||
TYPO3 v12 and will stop working in v13. | ||
|
||
|
||
Affected installations | ||
====================== | ||
|
||
:php:`PageRepository->getExtURL()` is a detail method and relatively unlikely | ||
to be used by extensions. The extension scanner will find affected code places. | ||
|
||
|
||
Migration | ||
========= | ||
|
||
The method has been discontinued and there is no direct migration. | ||
|
||
If needed, the most simple solution is to copy the method to an extensions | ||
code base and maintain it within the extension. | ||
|
||
.. index:: Backend, PHP-API, FullyScanned, ext:core |
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