Browse Source

Création User merchant

feature/ticket
Fab 3 years ago
parent
commit
ac95e78910
2 changed files with 20 additions and 0 deletions
  1. +2
    -0
      src/Controller/Dashboard/DashboardAdminController.php
  2. +18
    -0
      src/Controller/User/UserMerchantAdminController.php

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php View File

use App\Entity\Section\Section; use App\Entity\Section\Section;
use App\Entity\Site\Page; use App\Entity\Site\Page;
use App\Entity\User\User; use App\Entity\User\User;
use App\Entity\User\UserMerchant;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem; use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use Lc\CaracoleBundle\Controller\Dashboard\DashboardAdminController as CaracDashboardController; use Lc\CaracoleBundle\Controller\Dashboard\DashboardAdminController as CaracDashboardController;
use Symfony\Component\HttpFoundation\Response; use Symfony\Component\HttpFoundation\Response;
yield MenuItem::subMenu('user', 'user')->setSubItems( yield MenuItem::subMenu('user', 'user')->setSubItems(
[ [
MenuItem::linkToCrud('user_index', '', User::class), MenuItem::linkToCrud('user_index', '', User::class),
MenuItem::linkToCrud('user_merchant_index', '', UserMerchant::class),
] ]
); );



+ 18
- 0
src/Controller/User/UserMerchantAdminController.php View File

<?php

namespace App\Controller\User;

use App\Entity\User\UserMerchant;
use Lc\CaracoleBundle\Controller\User\UserMerchantAdminController as CaracUserMerchantAdminController;


class UserMerchantAdminController extends CaracUserMerchantAdminController
{
public static function getEntityFqcn(): string
{
return UserMerchant::class;
}



}

Loading…
Cancel
Save