2018-09-05 09:11:08 +02:00
|
|
|
<?php
|
2018-09-12 23:25:22 +03:00
|
|
|
|
2019-02-17 14:33:19 +01:00
|
|
|
namespace Infinito\Controller;
|
2018-09-05 09:11:08 +02:00
|
|
|
|
|
|
|
use Symfony\Component\Routing\Annotation\Route;
|
|
|
|
use Symfony\Component\HttpFoundation\Response;
|
2019-02-26 11:41:11 +01:00
|
|
|
use Infinito\Domain\FixtureManagement\FixtureSource\HomepageFixtureSource;
|
|
|
|
use Infinito\DBAL\Types\Meta\Right\LayerType;
|
|
|
|
use Infinito\DBAL\Types\RESTResponseType;
|
2018-09-05 09:11:08 +02:00
|
|
|
|
|
|
|
/**
|
2019-01-01 00:16:43 +01:00
|
|
|
* This controller offers the standart routes for the template.
|
|
|
|
*
|
2018-09-05 09:11:08 +02:00
|
|
|
* @author kevinfrantz
|
|
|
|
*/
|
2019-01-05 21:26:36 +01:00
|
|
|
final class DefaultController extends AbstractController
|
2018-09-05 09:11:08 +02:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @Route("/", name="homepage")
|
|
|
|
*/
|
|
|
|
public function homepage(): Response
|
|
|
|
{
|
2019-02-26 11:41:11 +01:00
|
|
|
return $this->redirectToRoute('infinito_api_rest_layer_read', [
|
|
|
|
'identity' => HomepageFixtureSource::SLUG,
|
|
|
|
'layer' => LayerType::SOURCE,
|
|
|
|
'_format' => RESTResponseType::HTML,
|
|
|
|
]);
|
2018-09-05 09:11:08 +02:00
|
|
|
}
|
|
|
|
}
|