src/Controller/Partner/PartnerController.php line 50

Open in your IDE?
  1. <?php
  2. namespace App\Controller\Partner;
  3. use Symfony\Component\HttpFoundation\Response;
  4. use Symfony\Component\Routing\Annotation\Route;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use App\Service\DataService;
  7. class PartnerController extends AbstractController
  8. {
  9.         
  10.     private $dataService;
  11.     public function __construct(DataService $dataService)
  12.     {
  13.         $this->dataService $dataService;
  14.     }
  15.      
  16.     /**
  17.      * @Route("/partener-inscription", name="partnerInscription")
  18.      */
  19.     public function renderInscription()
  20.     {
  21.         return $this->render('partner/inscription.html.twig');
  22.     }
  23.      /**
  24.      * @Route("/preinscription-termine", name="partnerSuccess")
  25.      */
  26.     public function renderSuccess()
  27.     {
  28.         return $this->render('partner/success.html.twig');
  29.     }
  30.      /**
  31.      * @Route("/centrale-des-audioprothesistes/termine", name="partnerInscriptionSuccess")
  32.      */
  33.     public function renderPartnerSuccess()
  34.     {
  35.         return $this->render('partner/inscription_success.html.twig');
  36.     }
  37.     /**
  38.      * @Route("/pro/inscription/centrale-des-audioprothesistes", name="render_center")
  39.      */
  40.     public function renderCenter()
  41.     {
  42.         //dd("developer_mode");
  43.         return $this->render('partner/preinscription.html.twig');
  44.        // return $this->render('page/comming_soon.html.twig');
  45.     }  
  46.     /**
  47.      * @Route("/pro/inscription/centrale-des-audioprothesistes-2", name="partner_inscription")
  48.      */
  49.     public function inscription()
  50.     {
  51.         //dd("developer_mode");
  52.         $data $this->dataService->fetchData();
  53.         return $this->render('partner/inscription.html.twig',$data);
  54.        // return $this->render('page/comming_soon.html.twig');
  55.     }  
  56. }