Skip to content

Commit 25a9f9b

Browse files
committed
Updated deprecated code.
1 parent 5485be8 commit 25a9f9b

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Classes/Utility/LinkUtility.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
use TYPO3\CMS\Core\Domain\Repository\PageRepository;
77
use TYPO3\CMS\Core\LinkHandling\LinkService;
8+
use TYPO3\CMS\Core\LinkHandling\TypoLinkCodecService;
89
use TYPO3\CMS\Core\Utility\GeneralUtility;
910
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
10-
use TYPO3\CMS\Frontend\Service\TypoLinkCodecService;
1111

1212
use function Safe\parse_url;
1313

Classes/ViewHelpers/SvgViewHelper.php

+2-6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55

66
use TYPO3\CMS\Core\Utility\GeneralUtility;
77
use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer;
8-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
98
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
10-
use TYPO3Fluid\Fluid\Core\ViewHelper\Traits\CompileWithRenderStatic;
119

1210
use Vierwd\VierwdBase\Frontend\ContentObject\ScalableVectorGraphicsContentObject;
1311

@@ -21,8 +19,6 @@
2119
*/
2220
class SvgViewHelper extends AbstractViewHelper {
2321

24-
use CompileWithRenderStatic;
25-
2622
/**
2723
* @phpcsSuppress SlevomatCodingStandard.TypeHints.PropertyTypeHint.MissingNativeTypeHint
2824
* @var bool
@@ -43,10 +39,10 @@ public function initializeArguments(): void {
4339
*
4440
* {@inheritdoc}
4541
*/
46-
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) {
42+
public function render() {
4743
$cObj = GeneralUtility::makeInstance(ContentObjectRenderer::class);
4844
$svgObject = GeneralUtility::makeInstance(ScalableVectorGraphicsContentObject::class, $cObj);
49-
return $svgObject->render($arguments);
45+
return $svgObject->render($this->arguments);
5046
}
5147

5248
}

0 commit comments

Comments
 (0)