[TASK] Deprecate various TSFE methods
[Packages/TYPO3.CMS.git] / typo3 / sysext / redirects / ext_localconf.php
1 <?php
2 defined('TYPO3_MODE') or die();
3
4 // Rebuild cache in DataHandler on changing / inserting / adding redirect records
5 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['redirects'] = \TYPO3\CMS\Redirects\Hooks\DataHandlerCacheFlushingHook::class . '->rebuildRedirectCacheIfNecessary';
6
7 // Inject sys_domains into valuepicker form
8 $GLOBALS['TYPO3_CONF_VARS']['SYS']['formEngine']['formDataGroup']['tcaDatabaseRecord']
9 [\TYPO3\CMS\Redirects\FormDataProvider\ValuePickerItemDataProvider::class] = [
10 'depends' => [
11 \TYPO3\CMS\Backend\Form\FormDataProvider\TcaInputPlaceholders::class,
12 ],
13 ];
14
15 \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Imaging\IconRegistry::class)
16 ->registerIcon(
17 'mimetypes-x-sys_redirect',
18 \TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider::class,
19 ['source' => 'EXT:redirects/Resources/Public/Icons/mimetypes-x-sys_redirect.svg']
20 );
21
22 // Add validation call for form field source_host and source_path
23 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][\TYPO3\CMS\Redirects\Evaluation\SourceHost::class] = '';