Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Classes/Core/Functional/Framework/Frontend/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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();
Expand All @@ -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 = [
Expand Down
4 changes: 4 additions & 0 deletions Classes/Core/Functional/Framework/Frontend/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)) {
Expand Down Expand Up @@ -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.'])) {
Expand All @@ -83,6 +86,7 @@ public function addSection(array $section, ?string $as = null): void
}
}

#[AsAllowedCallable]
public function renderSections(): string
{
return json_encode($this->sections);
Expand Down