src/Controller/Frontend/LegalController.php line 27

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Frontend;
  3. use App\Entity\Customer;
  4. use App\Service\Utils\CustomerServiceInterface;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class LegalController extends AbstractController
  9. {
  10.     protected ?Customer $customer;
  11.     /**
  12.      * @param CustomerServiceInterface $customerService
  13.      */
  14.     public function __construct(CustomerServiceInterface $customerService)
  15.     {
  16.         $this->customer $customerService->getCustomerByHost();
  17.     }
  18.     /**
  19.      * @return Response
  20.      */
  21.     #[Route('/agb'name'app_frontend_legal_data-protection')]
  22.     public function dataProtection(): Response
  23.     {
  24.         return $this->render('frontend/legal/data_protection.html.twig');
  25.     }
  26.     /**
  27.      * @return Response
  28.      */
  29.     #[Route('/impressum'name'app_frontend_legal_imprint')]
  30.     public function imprint(): Response
  31.     {
  32.         return $this->render('frontend/legal/imprint.html.twig');
  33.     }
  34. }