2024-06-01 23:15:35 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Controller;
|
|
|
|
|
2024-06-02 15:36:25 +02:00
|
|
|
use DigiComp\FluidRenderFunctions\Tests\Functional\Fixtures\Domain\Post;
|
2024-06-01 23:15:35 +02:00
|
|
|
use Neos\Flow\Mvc\Controller\ActionController;
|
|
|
|
use Neos\Flow\Persistence\Doctrine\Query;
|
2024-06-01 23:24:43 +02:00
|
|
|
use Neos\FluidAdaptor\Tests\Functional\Form\Fixtures\Domain\Model\Tag;
|
2024-06-01 23:15:35 +02:00
|
|
|
|
|
|
|
class TestController extends ActionController
|
|
|
|
{
|
|
|
|
public function indexAction()
|
|
|
|
{
|
|
|
|
$this->view->assign('test', ['name' => 'hallo']);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function selectAction()
|
|
|
|
{
|
2024-06-01 23:24:43 +02:00
|
|
|
$this->view->assign('testEntities', (new Query(Tag::class))->execute());
|
2024-06-01 23:15:35 +02:00
|
|
|
}
|
2024-06-02 15:36:25 +02:00
|
|
|
|
|
|
|
public function extendedSelectAction()
|
|
|
|
{
|
|
|
|
$this->view->assign('tags', (new Query(Tag::class))->execute());
|
|
|
|
}
|
|
|
|
|
|
|
|
public function extendedTextfieldAction()
|
|
|
|
{
|
|
|
|
$this->view->assign('now', new \DateTimeImmutable('2024-06-02T15:03:00Z'));
|
|
|
|
$this->view->assign('post', (new Query(Post::class))->execute()->getFirst());
|
|
|
|
}
|
2024-06-01 23:15:35 +02:00
|
|
|
}
|