infinito/application/symfony/src/Controller/DefaultController.php

34 lines
784 B
PHP
Raw Normal View History

2018-09-05 09:11:08 +02:00
<?php
2018-09-12 22:25:22 +02:00
2018-09-05 09:11:08 +02:00
namespace App\Controller;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
2019-01-04 20:41:37 +01:00
use Doctrine\ORM\EntityManagerInterface;
2018-09-05 09:11:08 +02: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
{
2018-09-05 18:11:35 +02:00
/**
2019-01-13 13:14:29 +01:00
* @deprecated Use load via source instead of fixed route
*
2018-11-23 23:22:17 +01:00
* @todo Optimize function!
* @Route("/imprint.{_format}", defaults={"_format"="json"}, name="imprint")
2018-09-05 18:11:35 +02:00
*/
2019-01-04 20:41:37 +01:00
public function imprint(EntityManagerInterface $entityManager): Response
2018-09-05 09:11:08 +02:00
{
}
2018-09-12 22:25:22 +02:00
2018-09-05 09:11:08 +02:00
/**
* @Route("/", name="homepage")
*/
public function homepage(): Response
{
2018-09-12 22:25:22 +02:00
return $this->render('standard/homepage.html.twig');
2018-09-05 09:11:08 +02:00
}
}