Services.yaml

New in version 10

Services can be configured in this file. TYPO3 uses it for:

A typical Configuration/Services.yaml may look like this:

typo3/sysext/core/Configuration/Services.yaml
services:
  # general settings
  _defaults:
    autowire: true
    autoconfigure: true
    public: false

  TYPO3\CMS\Core\:
    resource: '../Classes/*'

  # dependency injection (override public setting)
  TYPO3\CMS\Core\Mail\Mailer:
    public: true

  TYPO3\CMS\Core\Command\SendEmailCommand:
    tags:
      - name: 'console.command'
        command: 'mailer:spool:send'
      - name: 'console.command'
        command: 'swiftmailer:spool:send'
        alias: true
        schedulable: false
Copied!