diff --git a/Classes/Core/Functional/Framework/Frontend/Collector.php b/Classes/Core/Functional/Framework/Frontend/Collector.php index fc3493e8..9a2ef227 100644 --- a/Classes/Core/Functional/Framework/Frontend/Collector.php +++ b/Classes/Core/Functional/Framework/Frontend/Collector.php @@ -18,6 +18,7 @@ namespace TYPO3\TestingFramework\Core\Functional\Framework\Frontend; use Psr\Http\Message\ServerRequestInterface; +use TYPO3\CMS\Core\Attribute\AsAllowedCallable; use TYPO3\CMS\Core\Resource\File; use TYPO3\CMS\Core\Resource\FileReference; use TYPO3\CMS\Core\SingletonInterface; @@ -41,6 +42,7 @@ public function setContentObjectRenderer(ContentObjectRenderer $cObj): void $this->cObj = $cObj; } + #[AsAllowedCallable] public function addRecordData($content, array $configuration, ServerRequestInterface $request): void { $recordIdentifier = $this->cObj->currentRecord; @@ -60,6 +62,7 @@ public function addRecordData($content, array $configuration, ServerRequestInter } } + #[AsAllowedCallable] public function addFileData($content, array $configuration, ServerRequestInterface $request): void { $currentFile = $this->cObj->getCurrentFile(); @@ -81,6 +84,7 @@ public function addFileData($content, array $configuration, ServerRequestInterfa $this->addToStructure($levelIdentifier, $recordIdentifier, $recordData); } + #[AsAllowedCallable] public function attachSection(string $content, ?array $configuration = null): void { $section = [ diff --git a/Classes/Core/Functional/Framework/Frontend/Renderer.php b/Classes/Core/Functional/Framework/Frontend/Renderer.php index 03b81a3a..c046e574 100644 --- a/Classes/Core/Functional/Framework/Frontend/Renderer.php +++ b/Classes/Core/Functional/Framework/Frontend/Renderer.php @@ -17,6 +17,7 @@ * The TYPO3 project - inspiring people to share! */ +use TYPO3\CMS\Core\Attribute\AsAllowedCallable; use TYPO3\CMS\Core\SingletonInterface; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; @@ -29,6 +30,7 @@ final class Renderer implements SingletonInterface private array $sections = []; private ContentObjectRenderer $cObj; + #[AsAllowedCallable] public function parseValues(string $content, ?array $configuration = null): void { if (empty($content)) { @@ -65,6 +67,7 @@ public function parseValues(string $content, ?array $configuration = null): void * as = CustomData * } */ + #[AsAllowedCallable] public function renderValues(string $content, ?array $configuration = null): void { if (empty($configuration['values.'])) { @@ -83,6 +86,7 @@ public function addSection(array $section, ?string $as = null): void } } + #[AsAllowedCallable] public function renderSections(): string { return json_encode($this->sections);