Parcourir la source

DashboardAdminController : add ControllerTrait

packProduct
Guillaume il y a 3 ans
Parent
révision
25c6273dd5
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. +3
    -0
      Controller/Dashboard/DashboardAdminAdminController.php
  2. +1
    -1
      Twig/StoreTwigExtension.php

+ 3
- 0
Controller/Dashboard/DashboardAdminAdminController.php Voir le fichier

@@ -6,11 +6,14 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\Assets;
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu;
use Lc\CaracoleBundle\Controller\ControllerTrait;
use Lc\SovBundle\Controller\Dashboard\DashboardAdminController as SovDashboardController;
use Symfony\Component\Security\Core\User\UserInterface;

class DashboardAdminAdminController extends SovDashboardController
{
use ControllerTrait;

public function configureCrud(): Crud
{
$crud = parent::configureCrud();

+ 1
- 1
Twig/StoreTwigExtension.php Voir le fichier

@@ -139,7 +139,7 @@ class StoreTwigExtension extends AbstractExtension
return $this->settingSolver->getSettingValue($merchant, $settingName);
}

public function getMerchantSettingCurrent(string $settingName): string
public function getMerchantSettingCurrent(string $settingName): ?string
{
return $this->settingSolver->getSettingValue($this->getMerchantCurrent(), $settingName);
}

Chargement…
Annuler
Enregistrer