[FEATURE] Registry for adding file rendering classes
[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');
6
7 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
8 $signalSlotDispatcher->connect(
9 'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
10 \TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
11 'TYPO3\\CMS\\Core\\Resource\\Security\\StoragePermissionsAspect',
12 'addUserPermissionsToStorage'
13 );
14 $signalSlotDispatcher->connect(
15 'PackageManagement',
16 'packagesMayHaveChanged',
17 'TYPO3\\CMS\\Core\\Package\\PackageManager',
18 'scanAvailablePackages'
19 );
20 }
21
22 $signalSlotDispatcher->connect(
23 'TYPO3\\CMS\\Core\\Resource\\ResourceStorage',
24 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
25 'TYPO3\\CMS\\Core\\Resource\\Processing\\FileDeletionAspect',
26 'removeFromRepository'
27 );
28
29 unset($signalSlotDispatcher);
30
31 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = 'EXT:core/Resources/PHP/FileDumpEID.php';
32
33 /** @var \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry $rendererRegistry */
34 $rendererRegistry = \TYPO3\CMS\Core\Resource\Rendering\RendererRegistry::getInstance();
35 $rendererRegistry->registerRendererClass('TYPO3\\CMS\\Core\\Resource\\Rendering\\AudioTagRenderer');
36 $rendererRegistry->registerRendererClass('TYPO3\\CMS\\Core\\Resource\\Rendering\\VideoTagRenderer');