Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TASK] Replace last occurrences of PATH_site with Environment API
Resolves: #85285 Releases: master Change-Id: I4d12f7add6f536b3a412e554c8a6c4d64fd677e4 Reviewed-on: https://review.typo3.org/57241 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Jan Helke <typo3@helke.de> Tested-by: Jan Helke <typo3@helke.de> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
- Loading branch information
Showing
10 changed files
with
95 additions
and
53 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
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
45 changes: 45 additions & 0 deletions
45
.../Documentation/Changelog/master/Deprecation-85285-DeprecatedSystemConstants.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: #85285 - Deprecated path related constants | ||
======================================================= | ||
|
||
See :issue:`85285` | ||
|
||
Description | ||
=========== | ||
|
||
The following constants have been deprecated and should not be used any longer: | ||
|
||
* :php:`PATH_thisScript` | ||
Use :php:`Environment::getCurrentScript()` instead | ||
|
||
* :php:`PATH_site` | ||
Use :php:`Environment::getPublicPath() . '/'` instead | ||
|
||
|
||
Impact | ||
====== | ||
|
||
The above constants are still defined in TYPO3 v9, but their definition will be | ||
dropped in v10. | ||
|
||
|
||
Affected Installations | ||
====================== | ||
|
||
Constants can not be deprecated as such and using them does not log a deprecation message. | ||
Extensions in v9 should not use them any longer but switch to the alternatives already. | ||
|
||
The extension scanner will find usages of the above constants and marks them as strong | ||
matches. | ||
|
||
|
||
|
||
Migration | ||
========= | ||
|
||
Usages of the above constants should be switched to the Environment class methods instead. | ||
|
||
|
||
.. index:: PHP-API, FullyScanned |
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
Oops, something went wrong.