<?php
namespace App\Controller;
use App\Repository\ContentBlockRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class EnergyCertificateController extends AbstractController
{
#[Route('/leistungen/energieausweis', name: 'app_energy_certificate')]
public function index(ContentBlockRepository $contentBlockRepository): Response
{
return $this->render('energy_certificate/index.html.twig', [
'energy_certificate_intro' => $contentBlockRepository->findOneBySlug('energy_certificate_intro'),
'energy_certificate_details' => $contentBlockRepository->findOneBySlug('energy_certificate_details'),
]);
}
}