Skip to content

Commit

Permalink
compatibility: use the class MarkerBasedTemplateService instead of tx…
Browse files Browse the repository at this point in the history
…_div2007_core::newHtmlParser
  • Loading branch information
franzholz committed Jun 7, 2023
1 parent bd139a7 commit 5b9825f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Classes/Api/Start.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand All @@ -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 = [];
Expand Down

0 comments on commit 5b9825f

Please sign in to comment.