[FEATURE] Provide core cache frontends via dependency injection
[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\Package\PackageManager:
18 autoconfigure: false
19
20 TYPO3\CMS\Core\Package\FailsafePackageManager:
21 autoconfigure: false
22
23 TYPO3\CMS\Core\Package\UnitTestPackageManager:
24 autoconfigure: false
25
26 TYPO3\CMS\Core\Http\MiddlewareDispatcher:
27 autoconfigure: false
28
29 TYPO3\CMS\Core\Database\Schema\SqlReader:
30 public: true
31
32 # EventListeners
33 TYPO3\CMS\Core\Compatibility\Slot\PostInitializeMailer:
34 tags:
35 - { name: event.listener,
36 identifier: 'legacy-slot',
37 event: TYPO3\CMS\Core\Mail\Event\AfterMailerInitializationEvent }
38
39 # Core caches, cache.core and cache.assets are injected as early
40 # entries in TYPO3\CMS\Core\Core\Bootstrap and therefore omitted here
41 cache.hash:
42 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
43 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
44 arguments: ['hash']
45
46 cache.pages:
47 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
48 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
49 arguments: ['pages']
50
51 cache.pagesection:
52 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
53 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
54 arguments: ['pagesection']
55
56 cache.runtime:
57 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
58 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
59 arguments: ['runtime']
60
61 cache.rootline:
62 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
63 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
64 arguments: ['rootline']
65
66 cache.imagesizes:
67 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
68 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
69 arguments: ['imagesizes']
70
71 cache.l10n:
72 class: TYPO3\CMS\Core\Cache\Frontend\FrontendInterface
73 factory: ['@TYPO3\CMS\Core\Cache\CacheManager', 'getCache']
74 arguments: ['l10n']