Deprecation: #85285 - Deprecated path related constants
See forge#85285
Description
The following constants have been marked as deprecated and should not be used any longer:
PATH_
Usethis Script Environment::
insteadget Current Script () PATH_
Usesite Environment::
insteadget Public Path () . '/' PATH_
Usetypo3 Environment::
insteadget Public Path () . '/ typo3/' PATH_
Usetypo3conf Environment::
insteadget Public Path () . '/ typo3conf' TYPO3_
UseOS Environment::
andis Windows () Environment::
insteadis Unix ()
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 trigger a PHP E_
error.
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.