Parcourir la source

Crud PointSale

ideas
Guillaume il y a 3 ans
Parent
révision
dab3e9b126
2 fichiers modifiés avec 17 ajouts et 0 suppressions
  1. +2
    -0
      src/Controller/Dashboard/DashboardAdminController.php
  2. +15
    -0
      src/Controller/PointSale/PointSaleAdminController.php

+ 2
- 0
src/Controller/Dashboard/DashboardAdminController.php Voir le fichier

@@ -5,6 +5,7 @@ namespace App\Controller\Dashboard;
use App\Entity\Config\TaxRate;
use App\Entity\Config\Unit;
use App\Entity\Merchant\Merchant;
use App\Entity\PointSale\PointSale;
use App\Entity\Section\Section;
use App\Entity\Site\Page;
use App\Entity\Ticket\Ticket;
@@ -23,6 +24,7 @@ class DashboardAdminController extends CaracDashboardController
yield MenuItem::linkToDashboard('dashboard', 'far fa-circle');

yield MenuItem::linkToCrud('tickets', 'far fa-copy', Ticket::class);
yield MenuItem::linkToCrud('pointsale', 'far fa-circle', PointSale::class);
yield MenuItem::linkToCrud('page', 'far fa-copy', Page::class);
yield MenuItem::subMenu('user', 'far fa-user')->setSubItems(
[

+ 15
- 0
src/Controller/PointSale/PointSaleAdminController.php Voir le fichier

@@ -0,0 +1,15 @@
<?php

namespace App\Controller\PointSale;

use App\Entity\PointSale\PointSale;
use Lc\CaracoleBundle\Controller\PointSale\PointSaleAdminController as CaracPointSaleAdminController;

class PointSaleAdminController extends CaracPointSaleAdminController
{
public static function getEntityFqcn(): string
{
return PointSale::class;
}

}

Chargement…
Annuler
Enregistrer