<?php
declare(strict_types=1);
namespace App\Platform\Controller;
use App\Platform\Service\HomeService;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class HomeController extends AbstractController
{
public function __construct(
private readonly HomeService $homeService,
) {
}
#[Route(path: '/', name: 'app.home')]
public function elements(): Response
{
return $this->render('@base/home.html.twig', [
'modules' => $this->homeService->getModulesByPermissions(),
]);
}
}