src/Controller/EstimationController.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\PageRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class EstimationController extends AbstractController
  8. {
  9.     /**
  10.      * @Route("/estimation", name="app_estimation")
  11.      */
  12.     public function index(PageRepository $pageRepository): Response
  13.     {
  14.         return $this->render('estimation/index.html.twig', [
  15.             'pageEstimation' => $pageRepository->findBy(['id' => '2'], []),
  16.             'pageTitle' => 'estimation'
  17.         ]);
  18.     }
  19. }