---
title: "Deprecation: #99020 - Deprecate TypoScript/TemplateService"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:deprecation-99020-1667911024"
source: "Changelog/12.1/Deprecation-99020-DeprecateTypoScriptTemplateService.rst"
modified: "2026-09-15T10:46:36+00:00"
---

# Deprecation: #99020 - Deprecate TypoScript/TemplateService

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

## Description

The class `\TYPO3\CMS\Core\TypoScript\TemplateService` has been marked as deprecated
in TYPO3 v12 and will be removed in v13. This class is sometimes indirectly accessed
using `TypoScriptFrontendController->tmpl` or `$GLOBALS['TSFE']->tmpl`.

## Impact

The class `TemplateService` is part of the old TypoScript parser and has been
substituted with a [new parser approach](https://docs.typo3.org/permalink/changelog:breaking-97816-1664800747).
Actively calling class methods will trigger a deprecation log level warning.

## Affected installations

Instances with extensions directly using `TemplateService` or indirectly
using it by calling `TypoScriptFrontendController->tmpl` or
`$GLOBALS['TSFE']->tmpl` are affected.

## Migration

The class `TemplateService` is typically called in TYPO3 frontend scope. Extensions
should avoid using `TypoScriptFrontendController->tmpl` and `$GLOBALS['TSFE']->tmpl`
methods and properties. They can retrieve TypoScript from the PSR-7 request instead
using the attribute [frontend.typoscript](https://docs.typo3.org/permalink/changelog:feature-98914-1666689687).
As example, the full frontend TypoScript can be retrieved like this:

```php
$fullTypoScript = $request->getAttribute('frontend.typoscript')->getSetupArray();
```
