瀏覽代碼

DashboardAdminController : add ControllerTrait

packProduct
Guillaume 3 年之前
父節點
當前提交
25c6273dd5
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. +3
    -0
      Controller/Dashboard/DashboardAdminAdminController.php
  2. +1
    -1
      Twig/StoreTwigExtension.php

+ 3
- 0
Controller/Dashboard/DashboardAdminAdminController.php 查看文件

@@ -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 查看文件

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

Loading…
取消
儲存