‪TYPO3CMS  9.5
ext_localconf.php
Go to the documentation of this file.
1 <?php
2 
3 defined('TYPO3_MODE') or die();
4 
6 ‪$signalSlotDispatcher = \‪TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\‪TYPO3\CMS\‪Extbase\SignalSlot\Dispatcher::class);
7 
8 // PACKAGE MANAGEMENT
10  'PackageManagement',
11  'packagesMayHaveChanged',
12  \‪TYPO3\CMS\Core\Package\PackageManager::class,
13  'scanAvailablePackages'
14 );
15 
16 // FAL security checks for backend users
18  \‪TYPO3\CMS\Core\Resource\ResourceFactory::class,
19  \‪TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
20  \‪TYPO3\CMS\Core\Resource\Security\StoragePermissionsAspect::class,
21  'addUserPermissionsToStorage'
22 );
23 // FAL SVG file handling
25  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
26  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PreFileAdd,
27  \‪TYPO3\CMS\Core\Resource\Security\SvgFileSlot::class,
28  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PreFileAdd
29 );
31  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
32  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PreFileReplace,
33  \‪TYPO3\CMS\Core\Resource\Security\SvgFileSlot::class,
34  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PreFileReplace
35 );
37  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
38  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileSetContents,
39  \‪TYPO3\CMS\Core\Resource\Security\SvgFileSlot::class,
40  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileSetContents
41 );
42 
43 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][\‪TYPO3\CMS\Core\Utility\GeneralUtility::class]['moveUploadedFile'][] = \‪TYPO3\CMS\Core\Resource\Security\SvgHookHandler::class . '->processMoveUploadedFile';
44 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processUpload'][] = \‪TYPO3\CMS\Core\Resource\Security\SvgHookHandler::class;
45 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
46 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Hooks\BackendUserGroupIntegrityCheck::class;
47 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Hooks\BackendUserPasswordCheck::class;
48 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['typo3/alt_doc.php']['makeEditForm_accessCheck'][] = \‪TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
49 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms_inline.php']['checkAccess'][] = \‪TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class . '->isAllowedToShowEditForm';
50 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['checkModifyAccessList'][] = \‪TYPO3\CMS\Core\Resource\Security\FileMetadataPermissionsAspect::class;
51 
52 // Registering hooks for the Site Cache Hook
53 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::class;
54 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \‪TYPO3\CMS\Core\Hooks\SiteDataHandlerCacheHook::class;
55 
56 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Hooks\DestroySessionHook::class;
57 ‪$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \‪TYPO3\CMS\Core\Hooks\PagesTsConfigGuard::class;
58 
60  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
61  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
62  \‪TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
63  'removeFromRepository'
64 );
65 
67  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
68  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileAdd,
69  \‪TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
70  'cleanupProcessedFilesPostFileAdd'
71 );
72 
74  \‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
75  \‪TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileReplace,
76  \‪TYPO3\CMS\Core\Resource\Processing\FileDeletionAspect::class,
77  'cleanupProcessedFilesPostFileReplace'
78 );
79 
80 if (!\‪TYPO3\CMS\Core\Core\Environment::isComposerMode()) {
81  ‪$signalSlotDispatcher->connect(
82  \‪TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
83  'afterExtensionInstall',
84  \‪TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
85  'dumpClassLoadingInformation'
86  );
87  ‪$signalSlotDispatcher->connect(
88  \‪TYPO3\CMS\Extensionmanager\Utility\InstallUtility::class,
89  'afterExtensionUninstall',
90  \‪TYPO3\CMS\Core\Core\ClassLoadingInformation::class,
91  'dumpClassLoadingInformation'
92  );
93 }
95  ‪TYPO3\CMS\Core\Resource\ResourceStorage::class,
96  \‪TYPO3\CMS\Core\Resource\Service\FileProcessingService::SIGNAL_PreFileProcess,
97  \‪TYPO3\CMS\Core\Resource\OnlineMedia\Processing\PreviewProcessing::class,
98  'processFile'
99 );
100 
101 ‪$signalSlotDispatcher->connect(
102  'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
103  'tablesDefinitionIsBeingBuilt',
104  \‪TYPO3\CMS\Core\Cache\DatabaseSchemaService::class,
105  'addCachingFrameworkRequiredDatabaseSchemaForSqlExpectedSchemaService'
106 );
107 ‪$signalSlotDispatcher->connect(
108  'TYPO3\\CMS\\Install\\Service\\SqlExpectedSchemaService',
109  'tablesDefinitionIsBeingBuilt',
110  \‪TYPO3\CMS\Core\Category\CategoryRegistry::class,
111  'addCategoryDatabaseSchemaToTablesDefinition'
112 );
113 
115 
116 ‪$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = \TYPO3\CMS\Core\Controller\FileDumpController::class . '::dumpAction';
117 ‪$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['requirejs'] = \TYPO3\CMS\Core\Controller\RequireJsController::class . '::retrieveConfiguration';
118 
121 ‪$rendererRegistry->registerRendererClass(\‪TYPO3\CMS\Core\Resource\Rendering\AudioTagRenderer::class);
122 ‪$rendererRegistry->registerRendererClass(\‪TYPO3\CMS\Core\Resource\Rendering\VideoTagRenderer::class);
123 ‪$rendererRegistry->registerRendererClass(\‪TYPO3\CMS\Core\Resource\Rendering\YouTubeRenderer::class);
124 ‪$rendererRegistry->registerRendererClass(\‪TYPO3\CMS\Core\Resource\Rendering\VimeoRenderer::class);
125 unset(‪$rendererRegistry);
126 
128 ‪$textExtractorRegistry->registerTextExtractor(\‪TYPO3\CMS\Core\Resource\TextExtraction\PlainTextExtractor::class);
130 
132 ‪$extractorRegistry->registerExtractionService(\‪TYPO3\CMS\Core\Resource\OnlineMedia\Metadata\Extractor::class);
133 unset(‪$extractorRegistry);
134 
135 // Register base authentication service
137  'core',
138  'auth',
139  \‪TYPO3\CMS\Core\Authentication\AuthenticationService::class,
140  [
141  'title' => 'User authentication',
142  'description' => 'Authentication with username/password.',
143  'subtype' => 'getUserBE,getUserFE,authUserBE,authUserFE,getGroupsFE,processLoginDataBE,processLoginDataFE',
144  'available' => true,
145  'priority' => 50,
146  'quality' => 50,
147  'os' => '',
148  'exec' => '',
149  'className' => ‪TYPO3\CMS\Core\Authentication\AuthenticationService::class
150  ]
151 );
152 
153 // add default notification options to every page
155  'TCEMAIN.translateToMessage = Translate to %s:'
156 );
157 
158 ‪$metaTagManagerRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\‪TYPO3\CMS\Core\MetaTag\MetaTagManagerRegistry::class);
159 ‪$metaTagManagerRegistry->registerManager(
160  'html5',
161  \‪TYPO3\CMS\Core\MetaTag\Html5MetaTagManager::class
162 );
163 ‪$metaTagManagerRegistry->registerManager(
164  'edge',
165  \‪TYPO3\CMS\Core\MetaTag\EdgeMetaTagManager::class
166 );
168 
169 // Add module configuration
171  config.pageTitleProviders {
172  altPageTitle {
173  provider = TYPO3\CMS\Core\PageTitle\AltPageTitleProvider
174  before = record
175  }
176  record {
177  provider = TYPO3\CMS\Core\PageTitle\RecordPageTitleProvider
178  }
179  }
180 '));
‪$extractorRegistry
‪$extractorRegistry
Definition: ext_localconf.php:131
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addTypoScriptSetup
‪static addTypoScriptSetup($content)
Definition: ExtensionManagementUtility.php:1425
‪TYPO3
‪TYPO3\CMS\Core\Resource\Index\ExtractorRegistry\getInstance
‪static ExtractorRegistry getInstance()
Definition: ExtractorRegistry.php:41
‪TYPO3\CMS\Core\Resource\Rendering\RendererRegistry\getInstance
‪static RendererRegistry getInstance()
Definition: RendererRegistry.php:42
‪$textExtractorRegistry
‪$textExtractorRegistry
Definition: ext_localconf.php:127
‪TYPO3\CMS\Core\Resource\TextExtraction\TextExtractorRegistry\getInstance
‪static TextExtractorRegistry getInstance()
Definition: TextExtractorRegistry.php:43
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addPageTSConfig
‪static addPageTSConfig($content)
Definition: ExtensionManagementUtility.php:978
‪$signalSlotDispatcher
‪$signalSlotDispatcher
Definition: ext_localconf.php:6
‪$rendererRegistry
‪$rendererRegistry
Definition: ext_localconf.php:120
‪TYPO3\CMS\Core\Utility\ExtensionManagementUtility\addService
‪static addService($extKey, $serviceType, $serviceKey, $info)
Definition: ExtensionManagementUtility.php:1066
‪$metaTagManagerRegistry
‪$metaTagManagerRegistry
Definition: ext_localconf.php:158