Преглед изворни кода

Sections sur le tableau de bord

develop
Guillaume пре 3 година
родитељ
комит
d9eed18881
1 измењених фајлова са 11 додато и 1 уклоњено
  1. +11
    -1
      src/Controller/Dashboard/DashboardAdminController.php

+ 11
- 1
src/Controller/Dashboard/DashboardAdminController.php Прегледај датотеку

@@ -16,12 +16,20 @@ use App\Entity\User\GroupUser;
use App\Entity\User\UserMerchant;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use Lc\CaracoleBundle\Controller\Dashboard\DashboardAdminAdminController as CaracDashboardController;
use Lc\CaracoleBundle\Resolver\OpeningResolver;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

class DashboardAdminController extends CaracDashboardController
{

protected OpeningResolver $openingResolver;

public function __construct(OpeningResolver $openingResolver)
{
$this->openingResolver = $openingResolver;
}

public function configureMenuItems(): iterable
{
yield MenuItem::linkToDashboard('dashboard', 'far fa-circle');
@@ -69,7 +77,9 @@ class DashboardAdminController extends CaracDashboardController
*/
public function index(): Response
{
return $this->render('admin/dashboard/dashboard.html.twig');
return $this->render('admin/dashboard/dashboard.html.twig', [
'display_switch_section' => true,
]);
}

/*public function configureMenuItems(): iterable

Loading…
Откажи
Сачувај