Services.yaml

It is possible to use a YAML or PHP format:

Configuration/Services.yaml

Services.yaml
Scope
extension
Path (Composer)
packages/my_extension/Configuration/Services.yaml
Path (Classic)
typo3conf/ext/my_extension/Configuration/Services.yaml

Configuration/Services.php

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:

EXT:my_extension/Configuration/Services.yaml
services:
  _defaults:
    autowire: true
    autoconfigure: true
    public: false

  T3docs\Examples\:
    resource: '../Classes/*'
    exclude: '../Classes/Domain/Model/*'

  MyVendor\MyExtension\LinkValidator\LinkType\ExampleLinkType:
    tags:
      -  name: linkvalidator.linktype
Copied!