src/Controller/MainController.php line 14
<?phpnamespace App\Controller;use App\Repository\EgdDeclarationRepository;use App\Repository\MetaRepository;use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;use Symfony\Component\HttpFoundation\Response;use Symfony\Component\Routing\Annotation\Route;class MainController extends AbstractController{#[Route('/', name: 'app_egd_declaration_index', methods: ['GET'])]public function index(EgdDeclarationRepository $repository): Response{return $this->render('egd_declaration/index.html.twig', ['declarations' => $repository->findBy([], ['id' => 'DESC']),]);}}