<?php
namespace App\Controller\Partner;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use App\Service\DataService;
class PartnerController extends AbstractController
{
private $dataService;
public function __construct(DataService $dataService)
{
$this->dataService = $dataService;
}
/**
* @Route("/partener-inscription", name="partnerInscription")
*/
public function renderInscription()
{
return $this->render('partner/inscription.html.twig');
}
/**
* @Route("/preinscription-termine", name="partnerSuccess")
*/
public function renderSuccess()
{
return $this->render('partner/success.html.twig');
}
/**
* @Route("/centrale-des-audioprothesistes/termine", name="partnerInscriptionSuccess")
*/
public function renderPartnerSuccess()
{
return $this->render('partner/inscription_success.html.twig');
}
/**
* @Route("/pro/inscription/centrale-des-audioprothesistes", name="render_center")
*/
public function renderCenter()
{
//dd("developer_mode");
return $this->render('partner/preinscription.html.twig');
// return $this->render('page/comming_soon.html.twig');
}
/**
* @Route("/pro/inscription/centrale-des-audioprothesistes-2", name="partner_inscription")
*/
public function inscription()
{
//dd("developer_mode");
$data = $this->dataService->fetchData();
return $this->render('partner/inscription.html.twig',$data);
// return $this->render('page/comming_soon.html.twig');
}
}