src/Controller/LegalController.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 LegalController extends AbstractController
  8. {
  9. #[Route('/impressum', name: 'app_imprint')]
  10. public function imprint(ContentBlockRepository $contentBlockRepository): Response
  11. {
  12. return $this->render('legal/imprint.html.twig', [
  13. 'block' => $contentBlockRepository->findOneBySlug('legal_imprint'),
  14. ]);
  15. }
  16. #[Route('/datenschutz', name: 'app_privacy')]
  17. public function privacy(ContentBlockRepository $contentBlockRepository): Response
  18. {
  19. return $this->render('legal/privacy.html.twig', [
  20. 'block' => $contentBlockRepository->findOneBySlug('legal_privacy'),
  21. ]);
  22. }
  23. #[Route('/allgemeine-geschaeftsbedingungen', name: 'app_terms')]
  24. public function terms(ContentBlockRepository $contentBlockRepository): Response
  25. {
  26. return $this->render('legal/terms.html.twig', [
  27. 'block' => $contentBlockRepository->findOneBySlug('legal_terms'),
  28. ]);
  29. }
  30. }