Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| HomeController | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| indexAction | |
100.00% |
3 / 3 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | namespace App\Controller; |
| 4 | |
| 5 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
| 6 | use Symfony\Component\HttpFoundation\Response; |
| 7 | use Symfony\Component\Routing\Annotation\Route; |
| 8 | |
| 9 | class HomeController extends AbstractController |
| 10 | { |
| 11 | /** |
| 12 | * Renders the homepage. |
| 13 | * |
| 14 | * @return Response The rendered homepage. |
| 15 | */ |
| 16 | #[Route('/', name: 'app_homepage', methods: ['GET'])] |
| 17 | public function indexAction(): Response |
| 18 | { |
| 19 | return $this->render('home/home.html.twig', [ |
| 20 | 'controller_name' => 'HomeController', |
| 21 | ]); |
| 22 | } |
| 23 | } |