[TASK] Update Symfony packages to latest releases
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
5 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class);
6
7 // FAL security checks for backend users
8 $signalSlotDispatcher->connect(
9 \TYPO3\CMS\Core\Resource\ResourceFactory::class,
10 \TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
11 \TYPO3\CMS\Core\Resource\Security\StoragePermissionsAspect::class,
12 'addUserPermissionsToStorage'
13 );
14
15 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
16 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
17 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\BackendUserGroupIntegrityCheck::class;
18 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
19 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['checkAccess'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
20 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
21
22 // PACKAGE MANAGEMENT
23 $signalSlotDispatcher->connect(
24 'PackageManagement',
25 'packagesMayHaveChanged',
26 \TYPO3\CMS\Core\Package\PackageManager::class,
27 'scanAvailablePackages'
28 );
29 }
30
31 $signalSlotDispatcher->connect(
32 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
33 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
34 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
35 'removeFromRepository'
36 );
37
38 $signalSlotDispatcher->connect(
39 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
40 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
41 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
42 'cleanupProcessedFilesPostFileAdd'
43 );
44
45 $signalSlotDispatcher->connect(
46 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
47 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
48 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
49 'cleanupProcessedFilesPostFileReplace'
50 );
51
52 if (!\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
53 $signalSlotDispatcher->connect(
54 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
55 'afterExtensionInstall',
56 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
57 'dumpClassLoadingInformation'
58 );
59 $signalSlotDispatcher->connect(
60 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
61 'afterExtensionUninstall',
62 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
63 'dumpClassLoadingInformation'
64 );
65 }
66 $signalSlotDispatcher->connect(
67 TYPO3\CMS\Core\Resource\ResourceStorage::class,
68 \TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
69 \TYPO3\CMS\Core\Resource\OnlineMedia\Processing\PreviewProcessing::class,
70 'processFile'
71 );
72
73 $signalSlotDispatcher->connect(
74 \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
75 'tablesDefinitionIsBeingBuilt',
76 \TYPO3\CMS\Core\DataHandling\DatabaseSchemaService::class,
77 'getLocalizationRequiredDatabaseSchema'
78 );
79
80 $signalSlotDispatcher->connect(
81 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
82 'tablesDefinitionIsBeingBuilt',
83 \TYPO3\CMS\Core\DataHandling\DatabaseSchemaService::class,
84 'getLocalizationRequiredDatabaseSchemaForExtension'
85 );
86
87 unset($signalSlotDispatcher);
88
89 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
90
91 /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
92 $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
93 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
94 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
95 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer::class);
96 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer::class);
97 unset($rendererRegistry);
98
99 $textExtractorRegistry = \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry::getInstance();
100 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
101 unset($textExtractorRegistry);
102
103 $extractorRegistry = \TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getInstance();
104 $extractorRegistry->registerExtractionService(\TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
105 unset($extractorRegistry);