[TASK] Use name-resolution instead of strings where possible: 7
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / ext_localconf.php
index 568688d..8b0c7dd 100644 (file)
@@ -1,13 +1,29 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
 
-if (TYPO3_MODE === 'FE') {
-       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\SignalSlot\\Dispatcher')->connect(
-               'TYPO3\\CMS\\Core\\Resource\\Index\\MetaDataRepository',
+if (TYPO3_MODE === 'FE' && !isset($_REQUEST['eID'])) {
+       \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class)->connect(
+               \TYPO3\CMS\Core\Resource\Index\MetaDataRepository::class,
                'recordPostRetrieval',
-               'TYPO3\\CMS\\Frontend\\Aspect\\FileMetadataOverlayAspect',
+               \TYPO3\CMS\Frontend\Aspect\FileMetadataOverlayAspect::class,
                'languageAndWorkspaceOverlay'
        );
 }
+
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript(
+       'frontend',
+       'setup',
+       'config.extTarget = _top'
+);
+
+
+if (TYPO3_MODE === 'FE') {
+
+       // Register eID provider for showpic
+       $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_cms_showpic'] = 'EXT:frontend/Resources/PHP/Eid/ShowPic.php';
+       // Register eID provider for ExtDirect for the frontend
+       $GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['ExtDirect'] = 'EXT:frontend/Resources/PHP/Eid/ExtDirect.php';
+
+       // Register the core media wizard provider
+       \TYPO3\CMS\Frontend\MediaWizard\MediaWizardProviderManager::registerMediaWizardProvider(\TYPO3\CMS\Frontend\MediaWizard\MediaWizardProvider::class);
+}