Added DefaultController

This commit is contained in:
Kevin Frantz
2018-09-05 09:11:08 +02:00
parent 24e2ac8a34
commit edb60f395c
3 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Response;
/**
*
* @author kevinfrantz
*
*/
class DefaultController extends AbstractController implements DefaultControllerInterface
{
public function imprint(): Response
{
return new Response("Hello World!");
}
/**
* Matches /
*
* @Route("/", name="homepage")
*/
public function homepage(): Response
{
return new Response("Hello World!");
}
}