[!!!][FEATURE] Discard TYPO3 class loader
[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 $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 $signalSlotDispatcher->connect(
15 'PackageManagement',
16 'packagesMayHaveChanged',
17 \TYPO3\CMS\Core\Package\PackageManager::class,
18 'scanAvailablePackages'
19 );
20 }
21
22 $signalSlotDispatcher->connect(
23 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
24 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
25 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
26 'removeFromRepository'
27 );
28
29 $signalSlotDispatcher->connect(
30 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
31 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
32 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
33 'cleanupProcessedFilesPostFileAdd'
34 );
35
36 $signalSlotDispatcher->connect(
37 \TYPO3\CMS\Core\Resource\ResourceStorage::class,
38 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
39 \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
40 'cleanupProcessedFilesPostFileReplace'
41 );
42
43 if (!\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
44 $signalSlotDispatcher->connect(
45 \TYPO3\CMS\Extensionmanager\Service\ExtensionManagementService::class,
46 'hasInstalledExtensions',
47 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
48 'writeClassLoadingInformation'
49 );
50 $signalSlotDispatcher->connect(
51 \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
52 'afterExtensionUninstall',
53 \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
54 'writeClassLoadingInformation'
55 );
56 }
57
58 unset($signalSlotDispatcher);
59
60 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = 'EXT:core/Resources/PHP/FileDumpEID.php';
61
62 /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
63 $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
64 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
65 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
66
67 $textExtractorRegistry = \TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry::getInstance();
68 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);