.. include:: /Includes.rst.txt .. _ServicesYaml: .. index:: File; EXT:{extkey}/Configuration/Services.yaml Services.yaml Configuration; Services.yaml ============= Services.yaml ============= Services can be configured in this file. TYPO3 uses it for: * :ref:`Dependency Injection ` * :ref:`Event Listeners ` * Command Controllers (see :doc:`Feature: #89139 - Add dependency injection support for console commands `) * :ref:`Registering a widget with the dashboard ` A typical :file:`Configuration/Services.yaml` may look like this: .. literalinclude:: _example_services.yaml :language: yaml :caption: EXT:my_extension/Configuration/Services.yaml .. seealso:: * TYPO3 uses the Symfony Dependency Injection component, so official documentation can be found at https://symfony.com/doc/current/service_container.html