<?php
namespace Bidcoz\Bundle\FrontendBundle\Controller;
use Bidcoz\Bundle\CoreBundle\Controller\CoreController;
use Symfony\Component\Routing\Annotation\Route;
/**
* @Route("/legal")
*/
class LegalController extends CoreController
{
/**
* @Route("/privacy", name="legal_privacy")
*/
public function privacyAction()
{
return $this->render('@BidcozFrontend/Marketing/Legal/privacy.html.twig');
}
/**
* @Route("/organization-terms", name="legal_organization_terms")
*/
public function termsAction()
{
$config = $this->getActiveConfiguration();
return $this->render('@BidcozFrontend/Marketing/Legal/organization-terms.html.twig', [
'terms' => $config->getOrganizationTerms(),
]);
}
/**
* @Route("/user-terms", name="legal_user_terms")
*/
public function userTermsAction()
{
$config = $this->getActiveConfiguration();
return $this->render('@BidcozFrontend/Marketing/Legal/user-terms.html.twig', [
'terms' => $config->getUserTerms(),
]);
}
/**
* @Route("/dmca", name="legal_dmca")
*/
public function dmcaAction()
{
return $this->render('@BidcozFrontend/Marketing/Legal/dmca.html.twig');
}
}