TYPO3 CMS  TYPO3_7-6
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 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\Utility\InstallUtility::class,
54  'afterExtensionInstall',
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 
73 
74 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
75 
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 
85 $textExtractorRegistry->registerTextExtractor(\TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
87 
89 $extractorRegistry->registerExtractionService(\TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
90 unset($extractorRegistry);
if(!defined("DB_ERROR")) define("DB_ERROR"
$rendererRegistry
$extractorRegistry
$signalSlotDispatcher
if(TYPO3_MODE==='BE') $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tsfebeuserauth.php']['frontendEditingController']['default']
$textExtractorRegistry