Procházet zdrojové kódy

Création User merchant

feature/ticket
Fab před 3 roky
rodič
revize
ac95e78910
2 změnil soubory, kde provedl 20 přidání a 0 odebrání
  1. +2
    -0
      src/Controller/Dashboard/DashboardAdminController.php
  2. +18
    -0
      src/Controller/User/UserMerchantAdminController.php

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php Zobrazit soubor

@@ -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 Zobrazit soubor

@@ -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;
}



}

Načítá se…
Zrušit
Uložit