mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-09-13 13:57:10 +02:00
Added DefaultController
This commit is contained in:
30
application/src/Controller/DefaultController.php
Normal file
30
application/src/Controller/DefaultController.php
Normal 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!");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user