[TASK] Use FlexFormService to convert FAL driver configuration
[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 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
8 // FAL SECURITY CHECKS
9 $signalSlotDispatcher->connect(
10 \TYPO3\CMS\Core\Resource\ResourceFactory::class,
11 \TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
12 \TYPO3\CMS\Core\Resource\Security\StoragePermissionsAspect::class,
13 'addUserPermissionsToStorage'
14 );
15 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
16 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\BackendUserGroupIntegrityCheck::class;
17 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
18 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['checkAccess'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
19 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
20
21 // PACKAGE MANAGEMENT
22 $signalSlotDispatcher->connect(
23 'PackageManagement',
24 'packagesMayHaveChanged',
25 \TYPO3\CMS\Core\Package\PackageManager::class,
26 'scanAvailablePackages'
27 );
28 }
29
30 $signalSlotDispatcher->connect(
31 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
32 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
33 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
34 'removeFromRepository'
35 );
36
37 $signalSlotDispatcher->connect(
38 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
39 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
40 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
41 'cleanupProcessedFilesPostFileAdd'
42 );
43
44 $signalSlotDispatcher->connect(
45 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
46 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
47 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
48 'cleanupProcessedFilesPostFileReplace'
49 );
50
51 if (!\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
52 $signalSlotDispatcher->connect(
53 \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
54 'hasInstalledExtensions',
55 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
56 'dumpClassLoadingInformation'
57 );
58 $signalSlotDispatcher->connect(
59 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
60 'afterExtensionUninstall',
61 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
62 'dumpClassLoadingInformation'
63 );
64 }
65 $signalSlotDispatcher->connect(
66 TYPO3\CMS\Core\Resource\ResourceStorage::class,
67 \TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
68 \TYPO3\CMS\Core\Resource\OnlineMedia\Processing\PreviewProcessing::class,
69 'processFile'
70 );
71
72 unset($signalSlotDispatcher);
73
74 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
75
76 /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
77 $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
78 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
79 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
80 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer::class);
81 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer::class);
82 unset($rendererRegistry);
83
84 $textExtractorRegistry = \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry::getInstance();
85 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
86 unset($textExtractorRegistry);
87
88 $extractorRegistry = \TYPO3\CMS\Core\Resource\Index\ExtractorRegistry::getInstance();
89 $extractorRegistry->registerExtractionService(\TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
90 unset($extractorRegistry);