src/Controller/EnergyCertificateController.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Repository\ContentBlockRepository;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. class EnergyCertificateController extends AbstractController
  8. {
  9. #[Route('/leistungen/energieausweis', name: 'app_energy_certificate')]
  10. public function index(ContentBlockRepository $contentBlockRepository): Response
  11. {
  12. return $this->render('energy_certificate/index.html.twig', [
  13. 'energy_certificate_intro' => $contentBlockRepository->findOneBySlug('energy_certificate_intro'),
  14. 'energy_certificate_details' => $contentBlockRepository->findOneBySlug('energy_certificate_details'),
  15. ]);
  16. }
  17. }