diff --git a/Classes/ViewHelpers/VueComponentViewHelper.php b/Classes/ViewHelpers/VueComponentViewHelper.php index 6bfd3b4..b0a1154 100644 --- a/Classes/ViewHelpers/VueComponentViewHelper.php +++ b/Classes/ViewHelpers/VueComponentViewHelper.php @@ -4,19 +4,12 @@ namespace SvenPetersen\UX\Vue\ViewHelpers; -use SvenPetersen\FluidStimulus\ViewHelpers\AbstractStimulusViewHelper; +use Ssch\Typo3Encore\ViewHelpers\Stimulus\AbstractViewHelper; -class VueComponentViewHelper extends AbstractStimulusViewHelper +class VueComponentViewHelper extends AbstractViewHelper { protected $escapeOutput = false; - private AbstractStimulusViewHelper $stimulusFluidViewHelper; - - public function __construct(AbstractStimulusViewHelper $stimulusFluidViewHelper) - { - $this->stimulusFluidViewHelper = $stimulusFluidViewHelper; - } - public function initializeArguments(): void { $this->registerArgument('name', 'string', 'Name of the Vue component to render', true); @@ -31,6 +24,6 @@ public function render(): string $params['props'] = $this->arguments['props']; } - return $this->stimulusFluidViewHelper->renderStimulusController('@symfony/ux-vue/vue', $params)->__toString(); + return $this->renderStimulusController('@symfony/ux-vue/vue', $params)->__toString(); } } diff --git a/composer.json b/composer.json index f69bc77..449cca9 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ } ], "require": { - "svenpetersen/fluid-stimulus": "^0.1", + "ssch/typo3-encore": "^5.0.5", "symfony/ux-vue": "^2.6" }, "require-dev": {