src/Controller/TermsController.php line 13

  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\TermRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class TermsController extends AbstractController
  8. {
  9.     #[Route('/terms-and-conditions'name'app_terms')]
  10.     public function index(TermRepository $termRepository): Response
  11.     {
  12.         return $this->render('terms/index.html.twig', [
  13.             'controller_name' => 'TermsController',
  14.             'terms' => $termRepository->findAll(),
  15.         ]);
  16.     }
  17. }