[TASK] Remove superfluous indention level in site configuration yaml
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_localconf.php
1 <?php
2
3 defined('TYPO3_MODE') or die();
4
5 /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
6 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
7
8 // PACKAGE MANAGEMENT
9 $signalSlotDispatcher->connect(
10 'PackageManagement',
11 'packagesMayHaveChanged',
12 \TYPO3\CMS\Core\Package\PackageManager::class,
13 'scanAvailablePackages'
14 );
15
16 // FAL security checks for backend users
17 $signalSlotDispatcher->connect(
18 \TYPO3\CMS\Core\Resource\ResourceFactory::class,
19 \TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
20 \TYPO3\CMS\Core\Resource\Security\StoragePermissionsAspect::class,
21 'addUserPermissionsToStorage'
22 );
23
24 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
25 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\BackendUserGroupIntegrityCheck::class;
26 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
27 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['checkAccess'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
28 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
29
30 // Registering hooks for the Site Cache Hook
31 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::class;
32 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::class;
33
34 $signalSlotDispatcher->connect(
35 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
36 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
37 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
38 'removeFromRepository'
39 );
40
41 $signalSlotDispatcher->connect(
42 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
43 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
44 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
45 'cleanupProcessedFilesPostFileAdd'
46 );
47
48 $signalSlotDispatcher->connect(
49 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
50 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
51 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
52 'cleanupProcessedFilesPostFileReplace'
53 );
54
55 if (!\TYPO3\CMS\Core\Core\Environment::isComposerMode()) {
56 $signalSlotDispatcher->connect(
57 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
58 'afterExtensionInstall',
59 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
60 'dumpClassLoadingInformation'
61 );
62 $signalSlotDispatcher->connect(
63 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
64 'afterExtensionUninstall',
65 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
66 'dumpClassLoadingInformation'
67 );
68 }
69 $signalSlotDispatcher->connect(
70 TYPO3\CMS\Core\Resource\ResourceStorage::class,
71 \TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
72 \TYPO3\CMS\Core\Resource\OnlineMedia\Processing\PreviewProcessing::class,
73 'processFile'
74 );
75
76 $signalSlotDispatcher->connect(
77 'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
78 'tablesDefinitionIsBeingBuilt',
79 \TYPO3\CMS\Core\Cache\DatabaseSchemaService::class,
80 'addCachingFrameworkRequiredDatabaseSchemaForSqlExpectedSchemaService'
81 );
82 $signalSlotDispatcher->connect(
83 'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
84 'tablesDefinitionIsBeingBuilt',
85 \TYPO3\CMS\Core\Category\CategoryRegistry::class,
86 'addCategoryDatabaseSchemaToTablesDefinition'
87 );
88
89 unset($signalSlotDispatcher);
90
91 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
92
93 /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
94 $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
95 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
96 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
97 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer::class);
98 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer::class);
99 unset($rendererRegistry);
100
101 $textExtractorRegistry = \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry::getInstance();
102 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
103 unset($textExtractorRegistry);
104
105 $extractorRegistry = \TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getInstance();
106 $extractorRegistry->registerExtractionService(\TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
107 unset($extractorRegistry);
108
109 // Register base authentication service
110 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addService(
111 'core',
112 'auth',
113 \TYPO3\CMS\Core\Authentication\AuthenticationService::class,
114 [
115 'title' => 'User authentication',
116 'description' => 'Authentication with username/password.',
117 'subtype' => 'getUserBE,getUserFE,authUserBE,authUserFE,getGroupsFE,processLoginDataBE,processLoginDataFE',
118 'available' => true,
119 'priority' => 50,
120 'quality' => 50,
121 'os' => '',
122 'exec' => '',
123 'className' => TYPO3\CMS\Core\Authentication\AuthenticationService::class
124 ]
125 );
126
127 // add default notification options to every page
128 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig(
129 'TCEMAIN.translateToMessage = Translate to %s:'
130 );
131
132 $metaTagManagerRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry::class);
133 $metaTagManagerRegistry->registerManager(
134 'html5',
135 \TYPO3\CMS\Core\MetaTag\Html5MetaTagManager::class
136 );
137 $metaTagManagerRegistry->registerManager(
138 'edge',
139 \TYPO3\CMS\Core\MetaTag\EdgeMetaTagManager::class
140 );
141 unset($metaTagManagerRegistry);
142
143 // Add module configuration
144 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup(trim('
145 config.pageTitleProviders {
146 altPageTitle {
147 provider = TYPO3\CMS\Core\PageTitle\AltPageTitleProvider
148 before = record
149 }
150 record {
151 provider = TYPO3\CMS\Core\PageTitle\RecordPageTitleProvider
152 }
153 }
154 '));