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

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


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

@@ -0,0 +1,18 @@
<?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