|
2 | 2 |
|
3 | 3 | declare(strict_types=1);
|
4 | 4 |
|
5 |
| -/* |
6 |
| - * This file is part of the TYPO3 CMS project. |
7 |
| - * |
8 |
| - * It is free software; you can redistribute it and/or modify it under |
9 |
| - * the terms of the GNU General Public License, either version 2 |
10 |
| - * of the License, or any later version. |
11 |
| - * |
12 |
| - * For the full copyright and license information, please read the |
13 |
| - * LICENSE.txt file that was distributed with this source code. |
14 |
| - * |
15 |
| - * The TYPO3 project - inspiring people to share! |
16 |
| - */ |
17 |
| - |
18 | 5 | namespace Sypets\Brofix\Configuration;
|
19 | 6 |
|
20 | 7 | use Symfony\Component\Mime\Address;
|
|
24 | 11 | use Sypets\Brofix\Linktype\AbstractLinktype;
|
25 | 12 | use Sypets\Brofix\Linktype\LinktypeInterface;
|
26 | 13 | use TYPO3\CMS\Backend\Utility\BackendUtility;
|
27 |
| -use TYPO3\CMS\Core\TypoScript\Parser\TypoScriptParser; |
28 | 14 | use TYPO3\CMS\Core\Utility\ArrayUtility;
|
29 | 15 | use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
30 | 16 | use TYPO3\CMS\Core\Utility\GeneralUtility;
|
@@ -226,38 +212,6 @@ public function loadPageTsConfig(int $page): void
|
226 | 212 | $this->setTsConfig(BackendUtility::getPagesTSconfig($page)['mod.']['brofix.'] ?? []);
|
227 | 213 | }
|
228 | 214 |
|
229 |
| - /** |
230 |
| - * Reads page TSconfig from string and overrides existing tsconfig in |
231 |
| - * $this->tsconfig with the values. |
232 |
| - * |
233 |
| - * @param string $tsConfigString |
234 |
| - * @throws \Exception |
235 |
| - * |
236 |
| - * @deprecated use overrideTsConfigByArray |
237 |
| - */ |
238 |
| - public function overrideTsConfigByString(string $tsConfigString): void |
239 |
| - { |
240 |
| - /** |
241 |
| - * @var TypoScriptParser $parseObj |
242 |
| - */ |
243 |
| - $parseObj = GeneralUtility::makeInstance(TypoScriptParser::class); |
244 |
| - $parseObj->parse($tsConfigString); |
245 |
| - if (!empty($parseObj->errors)) { |
246 |
| - $parseErrorMessage = 'Invalid TSconfig' |
247 |
| - . '<br />'; |
248 |
| - foreach ($parseObj->errors as $errorInfo) { |
249 |
| - $parseErrorMessage .= $errorInfo[0] . '<br />'; |
250 |
| - } |
251 |
| - throw new \Exception($parseErrorMessage); |
252 |
| - } |
253 |
| - $tsConfig = $parseObj->setup; |
254 |
| - $overrideTs = $tsConfig['mod.']['brofix.']; |
255 |
| - |
256 |
| - if (is_array($overrideTs)) { |
257 |
| - ArrayUtility::mergeRecursiveWithOverrule($this->tsConfig, $overrideTs); |
258 |
| - } |
259 |
| - } |
260 |
| - |
261 | 215 | /**
|
262 | 216 | * @param array<mixed> $override
|
263 | 217 | */
|
|
0 commit comments