for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Attribute\Route;
class Kmom01 extends AbstractController
{
#[Route("/", name: "home")]
public function home(): Response
return $this->render('home.html.twig');
}
#[Route("/about", name: "about")]
public function about(): Response
return $this->render('about.html.twig');
#[Route("/report", name: "report")]
public function report(): Response
return $this->render('report.html.twig');
#[Route("/lucky", name: "lucky")]
public function lucky(): Response
$number = random_int(1, 100);
$data = [
'number' => $number
];
return $this->render('lucky.html.twig', $data);