<?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 BrochureController extends AbstractController
{
#[Route('/leistungen/exposebroschueren', name: 'app_brochure')]
public function index(ContentBlockRepository $contentBlockRepository): Response
{
return $this->render('brochure/index.html.twig', [
'intro' => $contentBlockRepository->findOneBySlug('brochure_intro'),
'details' => $contentBlockRepository->findOneBySlug('brochure_details'),
]);
}
}