TYPO3 CMS  TYPO3_8-7
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 defined('TYPO3_MODE') or die();
3 
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']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\BackendUserPasswordCheck::class;
19  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
20  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['checkAccess'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
21  $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][] = \TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
22 
23  // PACKAGE MANAGEMENT
24  $signalSlotDispatcher->connect(
25  'PackageManagement',
26  'packagesMayHaveChanged',
27  \TYPO3\CMS\Core\Package\PackageManager::class,
28  'scanAvailablePackages'
29  );
30 }
31 
32 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\DestroySessionHook::class;
33 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Core\Hooks\PagesTsConfigGuard::class;
34 
35 $signalSlotDispatcher->connect(
36  \TYPO3\CMS\Core\Resource\ResourceStorage::class,
37  \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
38  \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
39  'removeFromRepository'
40 );
41 
42 $signalSlotDispatcher->connect(
43  \TYPO3\CMS\Core\Resource\ResourceStorage::class,
44  \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
45  \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
46  'cleanupProcessedFilesPostFileAdd'
47 );
48 
49 $signalSlotDispatcher->connect(
50  \TYPO3\CMS\Core\Resource\ResourceStorage::class,
51  \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
52  \TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
53  'cleanupProcessedFilesPostFileReplace'
54 );
55 
56 if (!\TYPO3\CMS\Core\Core\Bootstrap::usesComposerClassLoading()) {
57  $signalSlotDispatcher->connect(
58  \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
59  'afterExtensionInstall',
60  \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
61  'dumpClassLoadingInformation'
62  );
63  $signalSlotDispatcher->connect(
64  \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
65  'afterExtensionUninstall',
66  \TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
67  'dumpClassLoadingInformation'
68  );
69 }
70 $signalSlotDispatcher->connect(
71  TYPO3\CMS\Core\Resource\ResourceStorage::class,
72  \TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
73  \TYPO3\CMS\Core\Resource\OnlineMedia\Processing\PreviewProcessing::class,
74  'processFile'
75 );
76 
77 $signalSlotDispatcher->connect(
78  \TYPO3\CMS\Install\Service\SqlExpectedSchemaService::class,
79  'tablesDefinitionIsBeingBuilt',
80  \TYPO3\CMS\Core\DataHandling\DatabaseSchemaService::class,
81  'getLocalizationRequiredDatabaseSchema'
82 );
83 
84 $signalSlotDispatcher->connect(
85  \TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
86  'tablesDefinitionIsBeingBuilt',
87  \TYPO3\CMS\Core\DataHandling\DatabaseSchemaService::class,
88  'getLocalizationRequiredDatabaseSchemaForExtension'
89 );
90 
92 
93 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
94 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['requirejs'] = \TYPO3\CMS\Core\Controller\RequireJsController::class . '::retrieveConfiguration';
95 
98 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
99 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
100 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer::class);
101 $rendererRegistry->registerRendererClass(\TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer::class);
102 unset($rendererRegistry);
103 
105 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
107 
109 $extractorRegistry->registerExtractionService(\TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
110 unset($extractorRegistry);
111 
112 // add default notification options to every page
114  'TCEMAIN.translateToMessage = Translate to %s:'
115 );
$rendererRegistry
$extractorRegistry
$signalSlotDispatcher
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']
$textExtractorRegistry