---
title: "Breaking: #107482 - Environment::getComposerRootPath method removed"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:breaking-107482-1758143015"
source: "Changelog/14.0/Breaking-107482-EnvironmentGetComposerRootPathMethodsRemoved.rst"
typo3-version: "14.0"
typo3-major: 14
type: "breaking"
issue: 107482
forge: "https://forge.typo3.org/issues/107482"
tags: ["PHP-API", "FullyScanned", "ext:core"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Breaking: #107482 - Environment::getComposerRootPath method removed {#breaking-107482-1758143015}

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

## Description {#description}

The following method in `\TYPO3\CMS\Core\Core\Environment` has been
removed in TYPO3 v14.0:

-   `Environment::getComposerRootPath()`

Since composer installers v4/v5 (which are required since TYPO3 v12),
`getComposerRootPath()` and `getProjectPath()` return the same
value, because the project path can no longer be changed through
configuration.

Therefore, the method `Environment::getComposerRootPath()` has been
removed. It was marked as internal from the beginning.

## Impact {#impact}

Calling this method will result in a PHP error.

## Affected installations {#affected-installations}

TYPO3 installations with custom extensions or custom code that directly
call the removed method are affected:

-   `Environment::getComposerRootPath()`

The extension scanner will report any usage as a strong match.

## Migration {#migration}

Instead of calculating relative paths manually, use absolute paths or
the appropriate TYPO3 APIs for path handling.

Use the following replacement:

-   `Environment::getProjectPath()`
