TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:09 +02:00
commit af8cc155b5
6818 changed files with 642608 additions and 0 deletions
@@ -0,0 +1,36 @@
.. include:: /Includes.rst.txt
.. _deprecation-89631:
======================================================================
Deprecation: #89631 - Use Environment API to fetch application context
======================================================================
See :issue:`89631`
Description
===========
The Environment API, introduced in TYPO3 v9.3, allows access to the current Application Context (Production, Testing or Development).
The method :php:`GeneralUtility::getApplicationContext()` has been deprecated, as the same information is now available in :php:`TYPO3\CMS\Core\Core\Environment::getContext()`.
Impact
======
Calling the GeneralUtility method will trigger a PHP deprecation warning.
Affected Installations
======================
Any TYPO3 installation with a third-party extension calling the method directly.
Migration
=========
Use the Environment API call and substitute the method directly.
.. index:: PHP-API, FullyScanned, ext:core