---
title: "Deprecation: #89631 - Use Environment API to fetch application context"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-89631"
source: "Changelog/10.2/Deprecation-89631-UseEnvironmentAPIToFetchApplicationContext.rst"
typo3-version: "10.2"
typo3-major: 10
type: "deprecation"
issue: 89631
forge: "https://forge.typo3.org/issues/89631"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-23T19:53:57+00:00"
---

# Deprecation: #89631 - Use Environment API to fetch application context {#deprecation-89631}

See [forge#89631](https://forge.typo3.org/issues/89631)

## Description {#description}

The Environment API, introduced in TYPO3 v9.3, allows access to the current Application Context (Production, Testing or Development).

The method `GeneralUtility::getApplicationContext()` has been deprecated, as the same information is now available in `\TYPO3\CMS\Core\Core\Environment::getContext()`.

## Impact {#impact}

Calling the GeneralUtility method will trigger a PHP deprecation warning.

## Affected Installations {#affected-installations}

Any TYPO3 installation with a third-party extension calling the method directly.

## Migration {#migration}

Use the Environment API call and substitute the method directly.
