<?php
declare(strict_types=1);
namespace App\Controller;
use App\Manager\TermsAndConditionsManager;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class TermsAndConditionsController extends AbstractController
{
private TermsAndConditionsManager $termsAndConditionsManager;
public function __construct(TermsAndConditionsManager $termsAndConditionsManager)
{
$this->termsAndConditionsManager = $termsAndConditionsManager;
}
/**
* @Route("/terms-and-conditions", name="terms_and_conditions_index")
*/
public function index(): Response
{
$termsAndConditions = $this->termsAndConditionsManager->get();
return $this->render('page/terms_and_conditions/index.html.twig', [
'termsAndConditions' => $termsAndConditions
]);
}
}