<?php
namespace App\Controller\Frontend;
use App\Entity\Customer;
use App\Service\Utils\CustomerServiceInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class LegalController extends AbstractController
{
protected ?Customer $customer;
/**
* @param CustomerServiceInterface $customerService
*/
public function __construct(CustomerServiceInterface $customerService)
{
$this->customer = $customerService->getCustomerByHost();
}
/**
* @return Response
*/
#[Route('/agb', name: 'app_frontend_legal_data-protection')]
public function dataProtection(): Response
{
return $this->render('frontend/legal/data_protection.html.twig');
}
/**
* @return Response
*/
#[Route('/impressum', name: 'app_frontend_legal_imprint')]
public function imprint(): Response
{
return $this->render('frontend/legal/imprint.html.twig');
}
}