Attention
TYPO3 v12 has reached end-of-life as of April 30th 2026 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v12 here: TYPO3 ELTS.
Services.yaml
It is possible to use a YAML or PHP format:
Configuration/Services.yaml
-
- Scope
- extension
- Path (Composer)
- packages/my_extension/Configuration/Services.yaml
- Path (Classic)
- typo3conf/ext/my_extension/Configuration/Services.yaml
Configuration/Services.php
-
- Scope
- extension
- Path (Composer)
- packages/my_extension/Configuration/Services.php
- Path (Classic)
- typo3conf/ext/my_extension/Configuration/Services.php
Services can be configured in this file. TYPO3 uses it for:
- Dependency Injection
- Event Listeners
- Command Controllers (see Feature: #89139 - Add dependency injection support for console commands)
- Registering a widget with the dashboard
EXT:my_extension/Configuration/Services.yaml