---
title: "Feature: #102631 - Introduce AsController attribute to autoconfigure backend controllers"
manual: "TYPO3 Core Changelog"
version: "main"
permalink: "https://docs.typo3.org/permalink/changelog:feature-102631-1702031335"
source: "Changelog/13.0/Feature-102631-IntroduceAsControllerAttributeToAutoconfigureBackendControllers.rst"
typo3-version: "13.0"
typo3-major: 13
type: "feature"
issue: 102631
forge: "https://forge.typo3.org/issues/102631"
tags: ["Backend", "PHP-API", "ext:backend"]
rendered: "2026-09-20T18:31:11+00:00"
---

# Feature: #102631 - Introduce AsController attribute to autoconfigure backend controllers {#feature-102631-1702031335}

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

## Description {#description}

A new custom PHP attribute `\TYPO3\CMS\Backend\Attribute\AsController` has
been introduced in order to automatically tag backend controllers, making them
available in the service container and enabling dependency injection.

Instead of adding the `backend.controller` manually, the attribute
can be set on the class:

```php
use TYPO3\CMS\Backend\Attribute\AsController;

#[AsController]
class MyBackendController {

}
```

> [!NOTE]
> The attribute is a drop-in replacement for the
> [deprecated](https://docs.typo3.org/permalink/changelog:deprecation-102631-1702031387)
> `\TYPO3\CMS\Core\Attribute\Controller` attribute.

## Impact {#impact}

It's now possible to automatically tag a backend controller by adding the new
PHP attribute `\TYPO3\CMS\Backend\Attribute\AsController`.
