src/Controller/Frontend/PageController.php line 253

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Frontend;
  3. use App\Entity\Library;
  4. use App\Entity\Partner;
  5. use App\Entity\OurStudent;
  6. use Symfony\Component\HttpFoundation\Request;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. use FOS\RestBundle\Controller\Annotations as Rest;
  9. use Symfony\Contracts\Translation\TranslatorInterface;
  10. class PageController extends BaseFrontendController
  11. {
  12.     /**
  13.      * @Rest\Get("/career-path", name="career_path")
  14.      */
  15.     public function careerPath(TranslatorInterface $translator)
  16.     {
  17.         $data['index'] = '';
  18.         $siteName $this->getParameter('site_name');
  19.         $this->addTitle($translator->trans(
  20.             'career.title',
  21.             [
  22.                 '%siteName%' => $siteName
  23.             ]
  24.         ));
  25.         $this->setDescription($translator->trans(
  26.             'career.desc',
  27.             [
  28.                 '%siteName%' => $siteName
  29.             ]
  30.         ));
  31.         return $this->render('pages/career.html.twig', [
  32.             $data
  33.         ]);
  34.     }
  35.     /**
  36.      * @Rest\Get("/english", name="page_english")
  37.      */
  38.     public function pageEnglish(TranslatorInterface $translator)
  39.     {
  40.         $siteName $this->getParameter('site_name');
  41.         $this->addTitle($translator->trans(
  42.             'english.title',
  43.             [
  44.                 '%siteName%' => $siteName
  45.             ]
  46.         ));
  47.         $this->setDescription($translator->trans(
  48.             'english.desc',
  49.             [
  50.                 '%siteName%' => $siteName
  51.             ]
  52.         ));
  53.         return $this->render('language/english.html.twig', ['campuses' => $this->campusRepo->getAll(['filter_status' => 1'sort_asc' => 'ordering'], 'ENTITY')]);
  54.     }
  55.     /**
  56.      * @Rest\Get("/china", name="page_china")
  57.      */
  58.     public function pageChina(TranslatorInterface $translator)
  59.     {
  60.         $siteName $this->getParameter('site_name');
  61.         $this->addTitle($translator->trans(
  62.             'china.title',
  63.             [
  64.                 '%siteName%' => $siteName
  65.             ]
  66.         ));
  67.         $this->setDescription($translator->trans(
  68.             'china.desc',
  69.             [
  70.                 '%siteName%' => $siteName
  71.             ]
  72.         ));
  73.         return $this->render('language/china.html.twig', ['campuses' => $this->campusRepo->getAll(['filter_status' => 1'sort_asc' => 'ordering'], 'ENTITY')]);
  74.     }
  75.     /**
  76.      * @Rest\Get("/accreditations-academic-partners", name="accreditations_academic_partners")
  77.      */
  78.     public function partnersPath(TranslatorInterface $translator)
  79.     {
  80.         $data['index'] = '';
  81.         $siteName $this->getParameter('site_name');
  82.         $this->addTitle($translator->trans(
  83.             'partners.title',
  84.             [
  85.                 '%siteName%' => $siteName
  86.             ]
  87.         ));
  88.         $this->setDescription($translator->trans(
  89.             'partners.desc',
  90.             [
  91.                 '%siteName%' => $siteName
  92.             ]
  93.         ));
  94.         return $this->render('pages/partners.html.twig', [
  95.             $data
  96.         ]);
  97.     }
  98.     /**
  99.      * @Route("/{_locale}/lalternance-comment-ca-marche", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="alternance")
  100.      */
  101.     public function alternance(TranslatorInterface $translator)
  102.     {
  103.         $siteName $this->getParameter('site_name');
  104.         $this->addTitle($translator->trans(
  105.             'alternance.title',
  106.             [
  107.                 '%siteName%' => $siteName
  108.             ]
  109.         ));
  110.         $this->setDescription($translator->trans(
  111.             'alternance.desc',
  112.             [
  113.                 '%siteName%' => $siteName
  114.             ]
  115.         ));
  116.         return $this->render('pages/alternance.html.twig');
  117.     }
  118.     /**
  119.      * @Route("/{_locale}/temoignages-de-nos-etudiants", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="page.our_student")
  120.      */
  121.     public function ourStudent(TranslatorInterface $translator)
  122.     {
  123.         $siteName $translator->trans('siteName');
  124.         $this->addTitle($translator->trans(
  125.             'our_student.title',
  126.             [
  127.                 '%siteName%' => $siteName
  128.             ]
  129.         ));
  130.         $this->setDescription($translator->trans(
  131.             'our_student.desc',
  132.             [
  133.                 '%siteName%' => $siteName
  134.             ]
  135.         ));
  136.         $data['outStudentArticles'] = $this->ourStudentRepo->getAllOurStudentByType(OurStudent::TYPE_ARTICLE);
  137.         $data['outStudentVideos']   = $this->ourStudentRepo->getAllOurStudentByType(OurStudent::TYPE_VIDEO);
  138.         return $this->render('pages/our_student.html.twig'$data);
  139.     }
  140.     /**
  141.      * @Route("/{_locale}/lecole-en-images", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="page.estiam_en_images")
  142.      */
  143.     public function estiamEnImages(TranslatorInterface $translator)
  144.     {
  145.         $siteName $translator->trans('siteName');
  146.         $videos $this->libraryService->getListByType(Library::TYPE_VIDEO);
  147.         $photos $this->libraryService->getListByType(Library::TYPE_PHOTO);
  148.         $this->addTitle($translator->trans(
  149.             'estiam_en_images.title',
  150.             [
  151.                 '%siteName%' => $siteName
  152.             ]
  153.         ));
  154.         $this->setDescription($translator->trans('estiam_en_images.desc'));
  155.         return $this->render('pages/estiam_en_images.html.twig', [
  156.             'videos' => $videos,
  157.             'photos' => $photos
  158.         ]);
  159.     }
  160.     /**
  161.      * @Route("/{_locale}/faq", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="faq")
  162.      */
  163.     public function faq(TranslatorInterface $translator)
  164.     {
  165.         $siteName $translator->trans('siteName');
  166.         $this->addTitle($translator->trans(
  167.             'faq.title',
  168.             [
  169.                 '%siteName%' => $siteName
  170.             ]
  171.         ));
  172.         $this->setDescription($translator->trans('faq.desc'));
  173.         $data['topics'] = $this->topicRepo->getAll(
  174.             ['sort_asc' => 'ordering']
  175.         );
  176.         return $this->render('pages/faq.html.twig'$data);
  177.     }
  178.     /**
  179.      * @Route("/{_locale}/nos-campus", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="campus.index")
  180.      */
  181.     public function campus(TranslatorInterface $translatorRequest $request)
  182.     {
  183.         $siteName $this->getParameter('site_name');
  184.         $this->addTitle($translator->trans(
  185.             'campus.title',
  186.             [
  187.                 '%siteName%' => $siteName
  188.             ]
  189.         ));
  190.         $this->setDescription($translator->trans(
  191.             'campus.desc',
  192.             [
  193.                 '%siteName%' => $siteName
  194.             ]
  195.         ));
  196.         
  197.         // list center with center gmap location
  198.         try {
  199.             $ip $request->getClientIp();
  200.             $country = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" $ip))->geoplugin_countryCode;
  201.         } catch (\Exception $e) {
  202.             $country 'FR';
  203.         }
  204.         
  205.            
  206.         return $this->render(
  207.             'campus/index.html.twig',
  208.             [
  209.                 'centers' => $this->campusService->getCenterMapLocationList(),
  210.                 'campuses' => $this->campusRepo->getAll(['filter_status' => 1'sort_asc' => 'ordering'], 'ENTITY'),
  211.                 'country' => $country
  212.             ]
  213.         );
  214.     }
  215.     /**
  216.      * @Route("/{_locale}/nos-campus/{slug}", requirements={"_locale": "en|fr", "slug": "[a-zA-Z0-9\-]+"}, defaults={"_locale"="fr"}, name="campus_detail")
  217.      */
  218.     public function campusDetail($slugTranslatorInterface $translator)
  219.     {
  220.         $campus $this->campusRepo->findOneBy(['slug' => $slug]);
  221.         if (!$campus) {
  222.             throw $this->createNotFoundException('');
  223.         }
  224.         $this->addTitle(empty($campus->getSeoTitle()) ? ($translator->trans('ÉSTIAM - Découvrez campus') . ' ' $campus->getName()) : $campus->getSeoTitle());
  225.         $this->setDescription(empty($campus->getSeoDescription()) ? $translator->trans(
  226.             'campus_detail.desc',
  227.             [
  228.                 '%campusName%' => $campus->getName()
  229.             ]
  230.         ) : $campus->getSeoDescription());
  231.         
  232.         $centerLocationList $this->campusService->getCenterMapLocationList($campus'campus/centerMapInfoSingle.html.twig');
  233.         $jpos $this->openDayRepo->getListByCampusId($campus->getId());
  234.         return $this->render(
  235.             'campus/detail.html.twig',
  236.             [
  237.                 'campus' => $campus,
  238.                 'jpos'   => $jpos,
  239.                 'outStudentArticles' => $this->ourStudentRepo->getAllOurStudentByType(OurStudent::TYPE_ARTICLE5),
  240.                 'centerLocationList' => $centerLocationList
  241.             ]
  242.         );
  243.     }
  244.     /**
  245.      * @Route("/{_locale}/nos-valeurs", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="nos_valeurs")
  246.      */
  247.     public function nosValeurs(TranslatorInterface $translator)
  248.     {
  249.         $siteName $this->getParameter('site_name');
  250.         $this->addTitle($translator->trans(
  251.             'nos_valeurs.title',
  252.             [
  253.                 '%siteName%' => $siteName
  254.             ]
  255.         ));
  256.         $this->setDescription($translator->trans(
  257.             'nos_valeurs.desc',
  258.             [
  259.                 '%siteName%' => $siteName
  260.             ]
  261.         ));
  262.         return $this->render('ecole/nos_valeurs.html.twig');
  263.     }
  264.     /**
  265.      * @Route("/{_locale}/l-ecole-pourquoi-etudier-a-estiam", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="etudier_estiam")
  266.      */
  267.     public function etudierEstiam(TranslatorInterface $translator)
  268.     {
  269.         $siteName $this->getParameter('site_name');
  270.         $this->addTitle($translator->trans(
  271.             'etudier_estiam.title',
  272.             [
  273.                 '%siteName%' => $siteName
  274.             ]
  275.         ));
  276.         $this->setDescription($translator->trans(
  277.             'etudier_estiam.desc',
  278.             [
  279.                 '%siteName%' => $siteName
  280.             ]
  281.         ));
  282.         return $this->render('ecole/etudier_estiam.html.twig');
  283.     }
  284.     /**
  285.      * @Route("/{_locale}/notre-pedagogie", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="pedagogie")
  286.      */
  287.     public function pedagogie(TranslatorInterface $translator)
  288.     {
  289.         $siteName $this->getParameter('site_name');
  290.         $this->addTitle($translator->trans(
  291.             'pedagogie.title',
  292.             [
  293.                 '%siteName%' => $siteName
  294.             ]
  295.         ));
  296.         $this->setDescription($translator->trans(
  297.             'pedagogie.desc',
  298.             [
  299.                 '%siteName%' => $siteName
  300.             ]
  301.         ));
  302.         return $this->render('ecole/pedagogie.html.twig');
  303.     }
  304.     /**
  305.      * @Route("/{_locale}/cursus-et-specialisations", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="cursus")
  306.      */
  307.     public function cursus(TranslatorInterface $translator)
  308.     {
  309.         $siteName $this->getParameter('site_name');
  310.         $this->addTitle($translator->trans(
  311.             'cursus.title',
  312.             [
  313.                 '%siteName%' => $siteName
  314.             ]
  315.         ));
  316.         $this->setDescription($translator->trans(
  317.             'cursus.desc',
  318.             [
  319.                 '%siteName%' => $siteName
  320.             ]
  321.         ));
  322.         return $this->render('ecole/cursus.html.twig');
  323.     }
  324.     /**
  325.      * @Route("/{_locale}/habilitations-et-qualite", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="habilitations")
  326.      */
  327.     public function habilitations(TranslatorInterface $translator)
  328.     {
  329.         $siteName $this->getParameter('site_name');
  330.         $this->addTitle($translator->trans(
  331.             'habilitations.title',
  332.             [
  333.                 '%siteName%' => $siteName
  334.             ]
  335.         ));
  336.         $this->setDescription($translator->trans(
  337.             'habilitations.desc',
  338.             [
  339.                 '%siteName%' => $siteName
  340.             ]
  341.         ));
  342.         $data['partners'] = $this->partnerRepo->getAll(['filter_status' => Partner::STATUS_ACTIVE], 'App\DTO\Partner\PartnerOutput');
  343.         return $this->render('ecole/habilitations.html.twig'$data);
  344.     }
  345.     /**
  346.      * @Route("/{_locale}/conseil-de-perfectionnement", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="conseil")
  347.      */
  348.     public function conseil(TranslatorInterface $translator)
  349.     {
  350.         $siteName $this->getParameter('site_name');
  351.         $this->addTitle($translator->trans(
  352.             'conseil.title',
  353.             [
  354.                 '%siteName%' => $siteName
  355.             ]
  356.         ));
  357.         $this->setDescription($translator->trans(
  358.             'conseil.desc',
  359.             [
  360.                 '%siteName%' => $siteName
  361.             ]
  362.         ));
  363.         return $this->render('ecole/conseil.html.twig');
  364.     }
  365.     /**
  366.      * @Route("/{_locale}/etudier-en-situation-de-handicap", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="etudier_handicap")
  367.      */
  368.     public function etudierHandicap(TranslatorInterface $translator)
  369.     {
  370.         $siteName $this->getParameter('site_name');
  371.         $this->addTitle($translator->trans(
  372.             'etudier_handicap.title',
  373.             [
  374.                 '%siteName%' => $siteName
  375.             ]
  376.         ));
  377.         $this->setDescription($translator->trans(
  378.             'etudier_handicap.desc',
  379.             [
  380.                 '%siteName%' => $siteName
  381.             ]
  382.         ));
  383.         return $this->render('ecole/etudier_handicap.html.twig');
  384.     }
  385.     /**
  386.      * @Route("/{_locale}/apply-offre", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="apply_offre")
  387.      */
  388.     public function applyOffre(TranslatorInterface $translator)
  389.     {
  390.         $siteName $this->getParameter('site_name');
  391.         $this->addTitle($translator->trans(
  392.             'offres.title',
  393.             [
  394.                 '%siteName%' => $siteName
  395.             ]
  396.         ));
  397.         $this->setDescription($translator->trans(
  398.             'offres.desc',
  399.             [
  400.                 '%siteName%' => $siteName
  401.             ]
  402.         ));
  403.         return $this->render('entreprises/apply_offre.html.twig');
  404.     }
  405.     /**
  406.      * @Route("/{_locale}/comment-integrer-un-de-nos-etudiants-dans-votre-entreprise", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="integrer_etudiants")
  407.      */
  408.     public function integrerEtudiants(TranslatorInterface $translator)
  409.     {
  410.         $this->addTitle($translator->trans(
  411.             'integrer_etudiants.title'
  412.         ));
  413.         $this->setDescription($translator->trans(
  414.             'integrer_etudiants.desc'
  415.         ));
  416.         return $this->render('entreprises/integrer_etudiants.html.twig');
  417.     }
  418.     /**
  419.      * @Route("/{_locale}/cga", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="cga")
  420.      */
  421.     public function cga(TranslatorInterface $translator)
  422.     {
  423.         $siteName $this->getParameter('site_name');
  424.         $this->addTitle($translator->trans(
  425.             'cga.title',
  426.             [
  427.                 '%siteName%' => $siteName
  428.             ]
  429.         ));
  430.         $this->setDescription($translator->trans(
  431.             'cga.desc',
  432.             [
  433.                 '%siteName%' => $siteName
  434.             ]
  435.         ));
  436.         return $this->render('policy/cga.html.twig');
  437.     }
  438.     /**
  439.      * @Route("/{_locale}/cgi", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="cgi")
  440.      */
  441.     public function cgi(TranslatorInterface $translator)
  442.     {
  443.         $siteName $this->getParameter('site_name');
  444.         $this->addTitle($translator->trans(
  445.             'cgi.title',
  446.             [
  447.                 '%siteName%' => $siteName
  448.             ]
  449.         ));
  450.         $this->setDescription($translator->trans(
  451.             'cgi.desc',
  452.             [
  453.                 '%siteName%' => $siteName
  454.             ]
  455.         ));
  456.         return $this->render('policy/cgi.html.twig');
  457.     }
  458.     /**
  459.      * @Route("/{_locale}/cgv", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="cgv")
  460.      */
  461.     public function cgv(TranslatorInterface $translator)
  462.     {
  463.         $siteName $this->getParameter('site_name');
  464.         $this->addTitle($translator->trans(
  465.             'cgv.title',
  466.             [
  467.                 '%siteName%' => $siteName
  468.             ]
  469.         ));
  470.         $this->setDescription($translator->trans(
  471.             'cgv.desc',
  472.             [
  473.                 '%siteName%' => $siteName
  474.             ]
  475.         ));
  476.         return $this->render('policy/cgv.html.twig');
  477.     }
  478.     /**
  479.      * @Route("/{_locale}/charte-utilisation", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="charte_utilisation")
  480.      */
  481.     public function charteUtilisation(TranslatorInterface $translator)
  482.     {
  483.         $siteName $this->getParameter('site_name');
  484.         $this->addTitle($translator->trans(
  485.             'charte_utilisation.title',
  486.             [
  487.                 '%siteName%' => $siteName
  488.             ]
  489.         ));
  490.         $this->setDescription($translator->trans(
  491.             'charte_utilisation.desc',
  492.             [
  493.                 '%siteName%' => $siteName
  494.             ]
  495.         ));
  496.         return $this->render('policy/charte_utilisation.html.twig');
  497.     }
  498.     /**
  499.      * @Route("/{_locale}/reglement-interieur", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="reglement_interieur")
  500.      */
  501.     public function reglementInterieur(TranslatorInterface $translator)
  502.     {
  503.         $siteName $this->getParameter('site_name');
  504.         $this->addTitle($translator->trans(
  505.             'reglement_interieur.title',
  506.             [
  507.                 '%siteName%' => $siteName
  508.             ]
  509.         ));
  510.         $this->setDescription($translator->trans(
  511.             'reglement_interieur.desc',
  512.             [
  513.                 '%siteName%' => $siteName
  514.             ]
  515.         ));
  516.         return $this->render('policy/reglement_interieur.html.twig');
  517.     }
  518.     /**
  519.      * @Route("/{_locale}/mentions-legales", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="mentions_legales")
  520.      */
  521.     public function mentionsLegales(TranslatorInterface $translator)
  522.     {
  523.         $siteName $this->getParameter('site_name');
  524.         $this->addTitle($translator->trans(
  525.             'mentions_legales.title',
  526.             [
  527.                 '%siteName%' => $siteName
  528.             ]
  529.         ));
  530.         $this->setDescription($translator->trans(
  531.             'mentions_legales.desc',
  532.             [
  533.                 '%siteName%' => $siteName
  534.             ]
  535.         ));
  536.         return $this->render('policy/mentions_legales.html.twig');
  537.     }
  538.     /**
  539.      * @Route("/{_locale}/reglement-des-etudes", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="reglement_etudes")
  540.      */
  541.     public function reglementEtudes(TranslatorInterface $translator)
  542.     {
  543.         $siteName $this->getParameter('site_name');
  544.         $this->addTitle($translator->trans(
  545.             'reglement_etudes.title',
  546.             [
  547.                 '%siteName%' => $siteName
  548.             ]
  549.         ));
  550.         $this->setDescription($translator->trans(
  551.             'reglement_etudes.desc',
  552.             [
  553.                 '%siteName%' => $siteName
  554.             ]
  555.         ));
  556.         return $this->render('policy/reglement_etudes.html.twig');
  557.     }
  558.     /**
  559.      * @Route("/{_locale}/satisfaction-etudiants", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="satisfaction_etudiants")
  560.      */
  561.     public function satisfactionEtudiants(TranslatorInterface $translator)
  562.     {
  563.         $siteName $this->getParameter('site_name');
  564.         $this->addTitle($translator->trans(
  565.             'satisfaction_etudiants.title',
  566.             [
  567.                 '%siteName%' => $siteName
  568.             ]
  569.         ));
  570.         $this->setDescription($translator->trans(
  571.             'satisfaction_etudiants.desc',
  572.             [
  573.                 '%siteName%' => $siteName
  574.             ]
  575.         ));
  576.         return $this->render('pages/satisfaction_etudiants.html.twig');
  577.     }
  578.     /**
  579.      * @Route("/{_locale}/bons-plans-etudiants-estiam", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_aide")
  580.      */
  581.     public function bonsAide(TranslatorInterface $translator)
  582.     {
  583.         $siteName $this->getParameter('site_name');
  584.         $this->addTitle($translator->trans(
  585.             'bons_aide.title',
  586.             [
  587.                 '%siteName%' => $siteName
  588.             ]
  589.         ));
  590.         $this->setDescription($translator->trans(
  591.             'bons_aide.desc',
  592.             [
  593.                 '%siteName%' => $siteName
  594.             ]
  595.         ));
  596.         return $this->render('bons/aide.html.twig');
  597.     }
  598.     /**
  599.      * @Route("/{_locale}/bons-plans-etudiants-voyagez", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_voyagez")
  600.      */
  601.     public function bonsVoyages(TranslatorInterface $translator)
  602.     {
  603.         $siteName $this->getParameter('site_name');
  604.         $this->addTitle($translator->trans(
  605.             'bons_aide.title',
  606.             [
  607.                 '%siteName%' => $siteName
  608.             ]
  609.         ));
  610.         $this->setDescription($translator->trans(
  611.             'bons_aide.desc',
  612.             [
  613.                 '%siteName%' => $siteName
  614.             ]
  615.         ));
  616.         return $this->render('bons/voyagez.html.twig');
  617.     }
  618.     /**
  619.      * @Route("/{_locale}/bons-plans-etudiants-permis", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_permis")
  620.      */
  621.     public function bonsPermis(TranslatorInterface $translator)
  622.     {
  623.         $siteName $this->getParameter('site_name');
  624.         $this->addTitle($translator->trans(
  625.             'bons_aide.title',
  626.             [
  627.                 '%siteName%' => $siteName
  628.             ]
  629.         ));
  630.         $this->setDescription($translator->trans(
  631.             'bons_aide.desc',
  632.             [
  633.                 '%siteName%' => $siteName
  634.             ]
  635.         ));
  636.         return $this->render('bons/permis.html.twig');
  637.     }
  638.     /**
  639.      * @Route("/{_locale}/bons-plans-etudiants-informatique", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_informatique")
  640.      */
  641.     public function bonsInformatique(TranslatorInterface $translator)
  642.     {
  643.         $siteName $this->getParameter('site_name');
  644.         $this->addTitle($translator->trans(
  645.             'bons_aide.title',
  646.             [
  647.                 '%siteName%' => $siteName
  648.             ]
  649.         ));
  650.         $this->setDescription($translator->trans(
  651.             'bons_aide.desc',
  652.             [
  653.                 '%siteName%' => $siteName
  654.             ]
  655.         ));
  656.         return $this->render('bons/informatique.html.twig');
  657.     }
  658.     /**
  659.      * @Route("/{_locale}/bons-plans-etudiants-cultivez", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_cultivez")
  660.      */
  661.     public function bonsCultivez(TranslatorInterface $translator)
  662.     {
  663.         $siteName $this->getParameter('site_name');
  664.         $this->addTitle($translator->trans(
  665.             'bons_aide.title',
  666.             [
  667.                 '%siteName%' => $siteName
  668.             ]
  669.         ));
  670.         $this->setDescription($translator->trans(
  671.             'bons_aide.desc',
  672.             [
  673.                 '%siteName%' => $siteName
  674.             ]
  675.         ));
  676.         return $this->render('bons/cultivez.html.twig');
  677.     }
  678.     /**
  679.      * @Route("/{_locale}/bons-plans-etudiants-shopping", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_shopping")
  680.      */
  681.     public function bonsShopping(TranslatorInterface $translator)
  682.     {
  683.         $siteName $this->getParameter('site_name');
  684.         $this->addTitle($translator->trans(
  685.             'bons_aide.title',
  686.             [
  687.                 '%siteName%' => $siteName
  688.             ]
  689.         ));
  690.         $this->setDescription($translator->trans(
  691.             'bons_aide.desc',
  692.             [
  693.                 '%siteName%' => $siteName
  694.             ]
  695.         ));
  696.         return $this->render('bons/shopping.html.twig');
  697.     }
  698.     /**
  699.      * @Route("/{_locale}/logement-etudiant-paris-colette-estiam", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_aide1")
  700.      */
  701.     public function bonsAide1(TranslatorInterface $translator)
  702.     {
  703.         $siteName $this->getParameter('site_name');
  704.         $this->addTitle($translator->trans(
  705.             'bons_aide1.title',
  706.             [
  707.                 '%siteName%' => $siteName
  708.             ]
  709.         ));
  710.         $this->setDescription($translator->trans(
  711.             'bons_aide1.desc',
  712.             [
  713.                 '%siteName%' => $siteName
  714.             ]
  715.         ));
  716.         return $this->render('bons/aide-1.html.twig');
  717.     }
  718.     /**
  719.      * @Route("/{_locale}/emmenagement-facile-estiam-mondopal", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_aide2")
  720.      */
  721.     public function bonsAide2(TranslatorInterface $translator)
  722.     {
  723.         $siteName $this->getParameter('site_name');
  724.         $this->addTitle($translator->trans(
  725.             'bons_aide2.title',
  726.             [
  727.                 '%siteName%' => $siteName
  728.             ]
  729.         ));
  730.         $this->setDescription($translator->trans(
  731.             'bons_aide2.desc',
  732.             [
  733.                 '%siteName%' => $siteName
  734.             ]
  735.         ));
  736.         return $this->render('bons/aide-2.html.twig');
  737.     }
  738.     /**
  739.      * @Route("/{_locale}/logement-etudiant-smartgarant-estiam", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_aide3")
  740.      */
  741.     public function bonsAide3(TranslatorInterface $translator)
  742.     {
  743.         $siteName $this->getParameter('site_name');
  744.         $this->addTitle($translator->trans(
  745.             'bons_aide3.title',
  746.             [
  747.                 '%siteName%' => $siteName
  748.             ]
  749.         ));
  750.         $this->setDescription($translator->trans(
  751.             'bons_aide3.desc',
  752.             [
  753.                 '%siteName%' => $siteName
  754.             ]
  755.         ));
  756.         return $this->render('bons/aide-3.html.twig');
  757.     }
  758.     /**
  759.      * @Route("/{_locale}/conseil-recherche-logement", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="bons_aide4")
  760.      */
  761.     public function bonsAide4(TranslatorInterface $translator)
  762.     {
  763.         $siteName $this->getParameter('site_name');
  764.         $this->addTitle($translator->trans(
  765.             'bons_aide4.title',
  766.             [
  767.                 '%siteName%' => $siteName
  768.             ]
  769.         ));
  770.         $this->setDescription($translator->trans(
  771.             'bons_aide4.desc',
  772.             [
  773.                 '%siteName%' => $siteName
  774.             ]
  775.         ));
  776.         return $this->render('bons/aide-4.html.twig');
  777.     }
  778.     /**
  779.      * @Route("/{_locale}/autofinancement-des-etudes", requirements={"_locale": "en|fr"}, defaults={"_locale"="fr"}, name="autofinancement")
  780.      */
  781.     public function autofinancement(TranslatorInterface $translator)
  782.     {
  783.         $siteName $this->getParameter('site_name');
  784.         $this->addTitle($translator->trans(
  785.             'autofinancement.title',
  786.             [
  787.                 '%siteName%' => $siteName
  788.             ]
  789.         ));
  790.         $this->setDescription($translator->trans(
  791.             'autofinancement.desc',
  792.             [
  793.                 '%siteName%' => $siteName
  794.             ]
  795.         ));
  796.         return $this->render('alternance/autofinancement.html.twig');
  797.     }
  798. }