From 33e67db6b1f8a10f2b48641bd326f8505803f440 Mon Sep 17 00:00:00 2001 From: Claus Due Date: Sun, 13 Aug 2023 18:34:18 +0200 Subject: [PATCH] [TASK] Move internal getter to more specific class --- Classes/Form/AbstractFormComponent.php | 11 ----------- Classes/Form/AbstractMultiValueFormField.php | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Classes/Form/AbstractFormComponent.php b/Classes/Form/AbstractFormComponent.php index c705d29c7..dca69bbdb 100644 --- a/Classes/Form/AbstractFormComponent.php +++ b/Classes/Form/AbstractFormComponent.php @@ -18,7 +18,6 @@ use FluidTYPO3\Flux\Form\Container\SectionObject; use FluidTYPO3\Flux\Form\Container\Sheet; use FluidTYPO3\Flux\Hooks\HookHandler; -use FluidTYPO3\Flux\Service\TypoScriptService; use FluidTYPO3\Flux\Utility\ExtensionNamingUtility; use FluidTYPO3\Flux\Utility\RecursiveArrayUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; @@ -419,16 +418,6 @@ public function modify(array $structure): self return $this; } - /** - * @codeCoverageIgnore - */ - protected function getTypoScriptService(): TypoScriptService - { - /** @var TypoScriptService $typoScriptService */ - $typoScriptService = GeneralUtility::makeInstance(TypoScriptService::class); - return $typoScriptService; - } - /** * @param \SplObjectStorage|FormInterface[]|array $children */ diff --git a/Classes/Form/AbstractMultiValueFormField.php b/Classes/Form/AbstractMultiValueFormField.php index 9a48afc42..5ced65b7d 100644 --- a/Classes/Form/AbstractMultiValueFormField.php +++ b/Classes/Form/AbstractMultiValueFormField.php @@ -8,6 +8,7 @@ * LICENSE.md file that was distributed with this source code. */ +use FluidTYPO3\Flux\Service\TypoScriptService; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\DomainObject\DomainObjectInterface; use TYPO3\CMS\Extbase\Persistence\QueryInterface; @@ -277,4 +278,14 @@ protected function addOptionsFromResults(QueryInterface $query): array } return $items; } + + /** + * @codeCoverageIgnore + */ + protected function getTypoScriptService(): TypoScriptService + { + /** @var TypoScriptService $typoScriptService */ + $typoScriptService = GeneralUtility::makeInstance(TypoScriptService::class); + return $typoScriptService; + } }