From 5b9825f9469b4e639cb7e84c9dbb10ac308a098f Mon Sep 17 00:00:00 2001 From: Franz Holzinger Date: Wed, 7 Jun 2023 20:40:17 +0200 Subject: [PATCH] compatibility: use the class MarkerBasedTemplateService instead of tx_div2007_core::newHtmlParser --- Classes/Api/Start.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Classes/Api/Start.php b/Classes/Api/Start.php index b25b79d..188cced 100644 --- a/Classes/Api/Start.php +++ b/Classes/Api/Start.php @@ -38,9 +38,11 @@ * */ +use TYPO3\CMS\Core\Service\MarkerBasedTemplateService; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; + use JambageCom\Transactor\Constants\Action; use JambageCom\Transactor\Constants\Feature; use JambageCom\Transactor\Constants\GatewayMode; @@ -95,7 +97,7 @@ static public function getMarkers ( } else { $langArray = $locallang['default']; } - $parser = \tx_div2007_core::newHtmlParser(false); + $templateService = GeneralUtility::makeInstance(MarkerBasedTemplateService::class); if (is_array($conf['marks.'])) { // Substitute Marker Array from TypoScript Setup @@ -115,7 +117,7 @@ static public function getMarkers ( $value = $value[0]['target']; } $newMarkerArray['###' . strtoupper($key) . '###'] = - $parser->substituteMarkerArray($value, $markerArray); + $templateService->substituteMarkerArray($value, $markerArray); } } else { $langArray = [];