<?php
declare(strict_types=1);
namespace App\Controller;
use App\Manager\PrivacyPolicyManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class PrivacyPolicyController extends AbstractController
{
private PrivacyPolicyManager $privacyPolicyManager;
public function __construct(PrivacyPolicyManager $privacyPolicyManager)
{
$this->privacyPolicyManager = $privacyPolicyManager;
}
/**
* @Route("/privacy-policy", name="privacy_policy_index")
*/
public function index(): Response
{
$privacyPolicy = $this->privacyPolicyManager->get();
return $this->render('page/privacy_policy/index.html.twig', [
'privacyPolicy' => $privacyPolicy
]);
}
}