From d936c789e07f2ec9a520c1b9e80b3551d99e862c Mon Sep 17 00:00:00 2001 From: Daniel Lorenz Date: Fri, 2 Nov 2018 15:44:30 +0100 Subject: [PATCH] [TASK] remove realurl configuration Resolves: #15 --- Classes/Hooks/RealUrlHook.php | 54 ----------------------------------- ext_localconf.php | 7 ----- 2 files changed, 61 deletions(-) delete mode 100644 Classes/Hooks/RealUrlHook.php diff --git a/Classes/Hooks/RealUrlHook.php b/Classes/Hooks/RealUrlHook.php deleted file mode 100644 index b5d70420..00000000 --- a/Classes/Hooks/RealUrlHook.php +++ /dev/null @@ -1,54 +0,0 @@ -getMode() === ConfigurationReader::MODE_DECODE) { - $targetPageId = $this->getTypoScriptFrontendController()->id; - $pageRecord = $this->getTypoScriptFrontendController()->page; - } else { - $targetPageId = $parameters['urlParameters']['id']; - $pageRepository = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository'); - $pageRecord = $pageRepository->getPage($parameters['urlParameters']['id']); - } - - if ($pageRecord) { - switch ((int)$pageRecord['doktype']) { - case 182: - $parameters['configuration']['fixedPostVars'][$targetPageId] = 'cartproductsShowProduct'; - break; - } - } - - return; - } - - /** - * @return \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController - */ - protected function getTypoScriptFrontendController() - { - return $GLOBALS['TSFE']; - } -} diff --git a/ext_localconf.php b/ext_localconf.php index c561ce6a..565d56eb 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -87,13 +87,6 @@ \Extcode\CartProducts\Hooks\CartProductHook::class; } -// realurl Hook - -if (TYPO3_MODE === 'FE') { - $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl']['ConfigurationReader_postProc'][1499067085] = - 'EXT:cart_products/Classes/Hooks/RealUrlHook.php:Extcode\CartProducts\Hooks\RealUrlHook->postProcessConfiguration'; -} - // ke_search Hook $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerIndexerConfiguration'][] = 'EXT:cart_products/Classes/Hooks/KeSearchIndexer.php:Extcode\CartProducts\Hooks\KeSearchIndexer';