poc form SDK (extends to form)

This commit is contained in:
Benjamin Dalsass
2023-09-01 16:15:34 +02:00
parent 664aa3949d
commit 253c61e241
8 changed files with 229 additions and 59 deletions

View File

@@ -0,0 +1,31 @@
<?php
namespace Combodo\iTop\DI\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
/**
* Default controller.
*
*/
class DefaultController extends AbstractController
{
/**
* @Route ("/", name="root")
*/
public function root(): Response
{
return $this->redirectToRoute('home');
}
/**
* @Route ("/home", name="home")
*/
public function home(): Response
{
return $this->render('DI/home.html.twig');
}
}