<?php
namespace App\Controller;
use App\Repository\PageRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class EstimationController extends AbstractController
{
/**
* @Route("/estimation", name="app_estimation")
*/
public function index(PageRepository $pageRepository): Response
{
return $this->render('estimation/index.html.twig', [
'pageEstimation' => $pageRepository->findBy(['id' => '2'], []),
'pageTitle' => 'estimation'
]);
}
}