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_thisScript Use Environment::getCurrentScript() instead
  • PATH_site Use Environment::getPublicPath() . '/' instead
  • PATH_typo3 Use Environment::getPublicPath() . '/typo3/' instead
  • PATH_typo3conf Use Environment::getPublicPath() . '/typo3conf' instead
  • TYPO3_OS Use Environment::isWindows() and Environment::isUnix() 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 trigger a PHP E_USER_DEPRECATED 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.