[TASK] Migrate eID scripts to use PSR-7
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
5 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
6 \TYPO3\CMS\Core\Resource\Index\MetaDataRepository::class,
7 'recordPostRetrieval',
8 \TYPO3\CMS\Frontend\Aspect\FileMetadataOverlayAspect::class,
9 'languageAndWorkspaceOverlay'
10 );
11 }
12
13 // Register all available content objects
14 $GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'] = array_merge($GLOBALS['TYPO3_CONF_VARS']['FE']['ContentObjects'], array(
15 'TEXT' => \TYPO3\CMS\Frontend\ContentObject\TextContentObject::class,
16 'CASE' => \TYPO3\CMS\Frontend\ContentObject\CaseContentObject::class,
17 'COA' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayContentObject::class,
18 'COA_INT' => \TYPO3\CMS\Frontend\ContentObject\ContentObjectArrayInternalContentObject::class,
19 'USER' => \TYPO3\CMS\Frontend\ContentObject\UserContentObject::class,
20 'USER_INT' => \TYPO3\CMS\Frontend\ContentObject\UserInternalContentObject::class,
21 'FILE' => \TYPO3\CMS\Frontend\ContentObject\FileContentObject::class,
22 'FILES' => \TYPO3\CMS\Frontend\ContentObject\FilesContentObject::class,
23 'IMAGE' => \TYPO3\CMS\Frontend\ContentObject\ImageContentObject::class,
24 'IMG_RESOURCE' => \TYPO3\CMS\Frontend\ContentObject\ImageResourceContentObject::class,
25 'CONTENT' => \TYPO3\CMS\Frontend\ContentObject\ContentContentObject::class,
26 'RECORDS' => \TYPO3\CMS\Frontend\ContentObject\RecordsContentObject::class,
27 'HMENU' => \TYPO3\CMS\Frontend\ContentObject\HierarchicalMenuContentObject::class,
28 'LOAD_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\LoadRegisterContentObject::class,
29 'RESTORE_REGISTER' => \TYPO3\CMS\Frontend\ContentObject\RestoreRegisterContentObject::class,
30 'TEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\TemplateContentObject::class,
31 'FLUIDTEMPLATE' => \TYPO3\CMS\Frontend\ContentObject\FluidTemplateContentObject::class,
32 'SVG' => \TYPO3\CMS\Frontend\ContentObject\ScalableVectorGraphicsContentObject::class,
33 'EDITPANEL' => \TYPO3\CMS\Frontend\ContentObject\EditPanelContentObject::class
34 ));
35
36 if (TYPO3_MODE === 'FE') {
37
38 // Register eID provider for showpic
39 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = \TYPO3\CMS\Frontend\Controller\ShowImageController::class;
40 // Register eID provider for ExtDirect for the frontend
41 $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = \TYPO3\CMS\Frontend\Controller\ExtDirectEidController::class;
42
43 }
44
45
46 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addUserTSConfig('
47 options.saveDocView = 1
48 options.saveDocNew = 1
49 options.saveDocNew.pages = 0
50 options.saveDocNew.sys_file = 0
51 options.disableDelete.sys_file = 1
52 ');
53
54 // Registering hooks for the treelist cache
55 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
56 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
57 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['moveRecordClass'][] = \TYPO3\CMS\Frontend\Hooks\TreelistCacheUpdateHooks::class;
58
59 // Register hook to show preview info
60 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']['cms'] = \TYPO3\CMS\Frontend\Hooks\FrontendHooks::class . '->hook_previewInfo';
61
62 // Register search key shortcuts
63 $GLOBALS['TYPO3_CONF_VARS']['SYS']['livesearch']['content'] = 'tt_content';