src/Controller/AuthController.php line 119

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\UserVendeur;
  4. use App\Repository\ArticlesRepository;
  5. use App\Repository\UserVendeurRepository;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  9. class AuthController extends AbstractController
  10. {
  11.     
  12.     /**
  13.      * @Route("/app-parametres", name="app_parametres")
  14.      */
  15.     public function app_parametres(): Response 
  16.     {
  17.         return $this->render('auth/parametres.html.twig', [
  18.             'controller_name' => 'AuthController',
  19.         ]);
  20.     }
  21.     /**
  22.      * @Route("/support", name="app_support")
  23.      */
  24.     public function app_support(): Response 
  25.     {
  26.         return $this->render('auth/support.html.twig', [
  27.             'controller_name' => 'AuthController',
  28.         ]);
  29.     }
  30.     /**
  31.      * @Route("/dashbord", name="app_dashboard")
  32.      */
  33.     public function dashbord(): Response 
  34.     {
  35.         return $this->render('admin/dashbord/index.html.twig', [
  36.             'controller_name' => 'AuthController',
  37.         ]);
  38.     }
  39.     /**
  40.      * @Route("/boutique-vendeur-profil/{id<[0-9]+>}", name="app_boutique_vendeur_profil")
  41.      */
  42.     public function boutique_vendeur_profil(UserVendeur $vendeur): Response
  43.     {
  44.         return $this->render('auth/profil.html.twig'compact('vendeur'));
  45.     } 
  46.     /**
  47.      * @Route("/boutique-vendeur-notification/", name="app_boutique_vendeur_notification")
  48.      */
  49.     public function boutique_vendeur_notification(): Response
  50.     {
  51.         return $this->render('auth/notification.html.twig');
  52.     } 
  53.     /**
  54.      * @Route("/boutique-vendeur-panier/", name="app_boutique_vendeur_panier")
  55.      */
  56.     public function boutique_vendeur_panier(): Response
  57.     {
  58.         return $this->render('auth/panier.html.twig');
  59.     } 
  60.     /**
  61.      * @Route("/categorie-produits-magasin/", name="app_boutique_categorie")
  62.      */
  63.     public function boutique_vendeur_categorieMagasin(UserVendeurRepository $UserVendeurRepos): Response
  64.     {
  65.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Magasins'], ['datedeCreations' => 'DESC'], 15);
  66.         return $this->render('categorie/catMagasins.html.twig', [
  67.             'vendeur' => $UserVendeurRepos
  68.             
  69.         ]);
  70.     } 
  71.     /**
  72.      * @Route("/categorie-produits-catmagasin/", name="app_boutique_catcategorie")
  73.      */
  74.     public function boutique_vendeur_catMagasin(UserVendeurRepository $UserVendeurRepos): Response
  75.     {
  76.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Magasins'], ['datedeCreations' => 'DESC'], 15);
  77.         return $this->render('categorie/long_catMagasins.html.twig', [
  78.             'vendeur' => $UserVendeurRepos
  79.             
  80.         ]);
  81.     } 
  82.     /**
  83.      * @Route("/categorie-produits-esthetique/", name="app_boutique_esthetique")
  84.      */
  85.     public function boutique_vendeur_categorieesthetique(UserVendeurRepository $UserVendeurRepos): Response
  86.     {
  87.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Esthétiques & beautés'], ['datedeCreations' => 'DESC'], 15);
  88.         return $this->render('categorie/catEsthetique.html.twig', [
  89.             'vendeurEsthetique' => $UserVendeurRepos
  90.             
  91.         ]);
  92.     }
  93.     /**
  94.      * @Route("/categorie-produits-cartesthetique/", name="app_boutique_cartesthetique")
  95.      */
  96.     public function boutique_vendeur_catesthetique(UserVendeurRepository $UserVendeurRepos): Response
  97.     {
  98.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Esthétiques & beautés'], ['datedeCreations' => 'DESC'], 15);
  99.         return $this->render('categorie/long_catEsthetique.html.twig', [
  100.             'vendeurEsthetique' => $UserVendeurRepos
  101.             
  102.         ]);
  103.     }
  104.     
  105.     /**
  106.      * @Route("/categorie-produits-boutiques/", name="app_boutique_Boutiques")
  107.      */
  108.     public function boutique_vendeur_categorieBoutiques(UserVendeurRepository $UserVendeurRepos): Response
  109.     {
  110.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Boutiques'], ['datedeCreations' => 'DESC'], 15);
  111.         return $this->render('categorie/catBoutiques.html.twig', [
  112.             'vendeurBoutiques' => $UserVendeurRepos
  113.             
  114.         ]);
  115.     }
  116.     /**
  117.      * @Route("/categorie-produits-cartboutiques/", name="app_cartboutique_Boutiques")
  118.      */
  119.     public function boutique_vendeur_categorieBoutique(UserVendeurRepository $UserVendeurRepos): Response
  120.     {
  121.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Boutiques'], ['datedeCreations' => 'DESC'], 15);
  122.         return $this->render('categorie/long_cartBoutique.html.twig', [
  123.             'vendeurBoutiques' => $UserVendeurRepos
  124.             
  125.         ]);
  126.     }
  127.     /**
  128.      * @Route("/categorie-produits-prestataires/", name="app_boutique_Prestataires")
  129.      */
  130.     public function boutique_vendeur_categoriePrestataires(UserVendeurRepository $UserVendeurRepos): Response
  131.     {
  132.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Prestataires'], ['datedeCreations' => 'DESC'], 15);
  133.         return $this->render('categorie/catPrestataires.html.twig', [
  134.             'vendeurPrestataires' => $UserVendeurRepos
  135.             
  136.         ]);
  137.     } 
  138.     /**
  139.      * @Route("/categorie-produits-cartprestataires/", name="app_cartboutique_Prestataires")
  140.      */
  141.     public function boutique_vendeur_catPrestataires(UserVendeurRepository $UserVendeurRepos): Response
  142.     {
  143.         $UserVendeurRepos $UserVendeurRepos->findBy(['categorie' => 'Prestataires'], ['datedeCreations' => 'DESC'], 15);
  144.         return $this->render('categorie/long_catPrestataires.html.twig', [
  145.             'vendeurPrestataires' => $UserVendeurRepos
  146.             
  147.         ]);
  148.     } 
  149. }