Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

DashboardAdminAdminController.php 1.4KB

pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
pirms 3 gadiem
123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Lc\CaracoleBundle\Controller\Dashboard;
  3. use EasyCorp\Bundle\EasyAdminBundle\Config\Assets;
  4. use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
  5. use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
  6. use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu;
  7. use Lc\SovBundle\Controller\Dashboard\DashboardAdminController as SovDashboardController;
  8. use Symfony\Component\Security\Core\User\UserInterface;
  9. class DashboardAdminAdminController extends SovDashboardController
  10. {
  11. public function configureCrud(): Crud
  12. {
  13. $crud = parent::configureCrud();
  14. $crud
  15. ->overrideTemplate('layout', '@LcCaracole/adminlte/layout.html.twig');
  16. return $crud;
  17. }
  18. public function configureAssets(): Assets
  19. {
  20. $assets = parent::configureAssets(); // TODO: Change the autogenerated stub
  21. $assets->addWebpackEncoreEntry('carac-common');
  22. $assets->addWebpackEncoreEntry('carac-switch-merchant');
  23. return $assets;
  24. }
  25. public function configureUserMenu(UserInterface $user): UserMenu
  26. {
  27. return parent::configureUserMenu($user)
  28. ->setMenuItems(
  29. [
  30. MenuItem::linkToRoute('Mon profil', 'fa fa-id-card', 'sov_admin_account_profile'),
  31. MenuItem::linkToLogout('Déconnexion', 'sign-out-alt'),
  32. ]
  33. );
  34. }
  35. }