src/Bidcoz/Bundle/FrontendBundle/Controller/LegalController.php line 49

Open in your IDE?
  1. <?php
  2. namespace Bidcoz\Bundle\FrontendBundle\Controller;
  3. use Bidcoz\Bundle\CoreBundle\Controller\CoreController;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. /**
  6.  * @Route("/legal")
  7.  */
  8. class LegalController extends CoreController
  9. {
  10.     /**
  11.      * @Route("/privacy", name="legal_privacy")
  12.      */
  13.     public function privacyAction()
  14.     {
  15.         return $this->render('@BidcozFrontend/Marketing/Legal/privacy.html.twig');
  16.     }
  17.     /**
  18.      * @Route("/organization-terms", name="legal_organization_terms")
  19.      * @Route("/fundraiser-terms", name="legal_fundraiser_terms")
  20.      */
  21.     public function termsAction()
  22.     {
  23.         $config $this->getActiveConfiguration();
  24.         return $this->render('@BidcozFrontend/Marketing/Legal/organization-terms.html.twig', [
  25.             'terms' => $config->getOrganizationTerms(),
  26.         ]);
  27.     }
  28.     /**
  29.      * @Route("/user-terms", name="legal_user_terms")
  30.      */
  31.     public function userTermsAction()
  32.     {
  33.         $config $this->getActiveConfiguration();
  34.         return $this->render('@BidcozFrontend/Marketing/Legal/user-terms.html.twig', [
  35.             'terms' => $config->getUserTerms(),
  36.         ]);
  37.     }
  38.     /**
  39.      * @Route("/dmca", name="legal_dmca")
  40.      */
  41.     public function dmcaAction()
  42.     {
  43.         return $this->render('@BidcozFrontend/Marketing/Legal/dmca.html.twig');
  44.     }
  45. }