---
title: "Deprecation: #92494 - Extbase EnvironmentService"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-92494"
source: "Changelog/11.2/Deprecation-92494-ExtbaseEnvironmentService.rst"
typo3-version: "11.2"
typo3-major: 11
type: "deprecation"
issue: 92494
forge: "https://forge.typo3.org/issues/92494"
tags: ["PHP-API", "FullyScanned", "ext:extbase"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Deprecation: #92494 - Extbase EnvironmentService {#deprecation-92494}

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

## Description {#description}

The extbase class `\TYPO3\CMS\Extbase\Service\EnvironmentService` is an API
for TYPO3's legacy constant `TYPO3_MODE`. That constant has been marked as
deprecated in v11 and superseded by core API class
`\TYPO3\CMS\Core\Http\ApplicationType`, which relies on a PSR-7 request
to determine frontend or backend mode. The `EnvironmentService` has now
been marked as deprecated as a logical follow-up to these works.

## Impact {#impact}

Using the class will trigger a PHP `E_USER_DEPRECATED` error.

## Affected Installations {#affected-installations}

Even though `\TYPO3\CMS\Extbase\Service\EnvironmentService` is `@internal`, some extensions
may still rely on it. The extension scanner will find usages.

## Migration {#migration}

Instances with extensions using that class should either make their code agnostic
to frontend or backend mode, or use `ApplicationType`. Code examples can
be found in the [Changelog](https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92947-DeprecateTYPO3_MODEAndTYPO3_REQUESTTYPEConstants.html) file.
