[BUGFIX] Make category TCA changes cacheable
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / ext_localconf.php
1 <?php
2 if (!defined('TYPO3_MODE')) {
3 die('Access denied.');
4 }
5 /** @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */
6 $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher');
7
8 if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
9 $signalSlotDispatcher->connect(
10 'TYPO3\\CMS\\Core\\Resource\\ResourceFactory',
11 \TYPO3\CMS\Core\Resource\ResourceFactoryInterface::SIGNAL_PostProcessStorage,
12 'TYPO3\\CMS\\Core\\Resource\\Security\\StoragePermissionsAspect',
13 'addUserPermissionsToStorage'
14 );
15 $signalSlotDispatcher->connect(
16 'PackageManagement',
17 'packagesMayHaveChanged',
18 'TYPO3\\CMS\\Core\\Package\\PackageManager',
19 'scanAvailablePackages'
20 );
21 }
22
23 $signalSlotDispatcher->connect(
24 'TYPO3\\CMS\\Core\\Resource\\ResourceStorage',
25 \TYPO3\CMS\Core\Resource\ResourceStorageInterface::SIGNAL_PostFileDelete,
26 'TYPO3\\CMS\\Core\\Resource\\Processing\\FileDeletionAspect',
27 'removeFromRepository'
28 );
29
30 $signalSlotDispatcher->connect(
31 'TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility',
32 'tcaIsBeingBuilt',
33 'TYPO3\\CMS\\Core\\Category\\CategoryRegistry',
34 'addCategoryRegistryTcaChanges'
35 );
36
37 unset($signalSlotDispatcher);
38
39 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['dumpFile'] = 'EXT:core/Resources/PHP/FileDumpEID.php';