Skip to content

Commit

Permalink
[TASK] Move internal getter to more specific class
Browse files Browse the repository at this point in the history
  • Loading branch information
NamelessCoder committed Aug 13, 2023
1 parent 6748eee commit 33e67db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
11 changes: 0 additions & 11 deletions Classes/Form/AbstractFormComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
*/
Expand Down
11 changes: 11 additions & 0 deletions Classes/Form/AbstractMultiValueFormField.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 33e67db

Please sign in to comment.