[FEATURE] Introduce PSR-14-based EventDispatcher as alternative for hooks
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Configuration / Services.yaml
1 services:
2 _defaults:
3 autowire: true
4 autoconfigure: true
5 public: false
6
7 TYPO3\CMS\Core\:
8 resource: '../Classes/*'
9
10 TYPO3\CMS\Core\DependencyInjection\EnvVarProcessor:
11 tags: ['container.env_var_processor']
12
13 TYPO3\CMS\Core\Configuration\SiteConfiguration:
14 arguments:
15 $configPath: "%env(TYPO3:configPath)%/sites"
16
17 TYPO3\CMS\Core\EventDispatcher\EventDispatcher:
18 arguments:
19 $listenerProvider: '@TYPO3\CMS\Core\EventDispatcher\ListenerProvider'
20
21 TYPO3\CMS\Core\EventDispatcher\ListenerProvider:
22 public: true
23
24 TYPO3\CMS\Core\Package\PackageManager:
25 autoconfigure: false
26
27 TYPO3\CMS\Core\Package\FailsafePackageManager:
28 autoconfigure: false
29
30 TYPO3\CMS\Core\Package\UnitTestPackageManager:
31 autoconfigure: false
32
33 TYPO3\CMS\Core\Http\MiddlewareDispatcher:
34 autoconfigure: false
35
36 TYPO3\CMS\Core\Database\Schema\SqlReader:
37 public: true
38
39 # EventListeners
40 TYPO3\CMS\Core\Compatibility\Slot\PostInitializeMailer:
41 tags:
42 - { name: event.listener,
43 identifier: 'legacy-slot',
44 event: TYPO3\CMS\Core\Mail\Event\AfterMailerInitializationEvent }