Browse Source

DashboardAdminController : add ControllerTrait

packProduct
Guillaume 3 years ago
parent
commit
25c6273dd5
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      Controller/Dashboard/DashboardAdminAdminController.php
  2. +1
    -1
      Twig/StoreTwigExtension.php

+ 3
- 0
Controller/Dashboard/DashboardAdminAdminController.php View File

use EasyCorp\Bundle\EasyAdminBundle\Config\Crud; use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem; use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu; use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu;
use Lc\CaracoleBundle\Controller\ControllerTrait;
use Lc\SovBundle\Controller\Dashboard\DashboardAdminController as SovDashboardController; use Lc\SovBundle\Controller\Dashboard\DashboardAdminController as SovDashboardController;
use Symfony\Component\Security\Core\User\UserInterface; use Symfony\Component\Security\Core\User\UserInterface;


class DashboardAdminAdminController extends SovDashboardController class DashboardAdminAdminController extends SovDashboardController
{ {
use ControllerTrait;

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

+ 1
- 1
Twig/StoreTwigExtension.php View File

return $this->settingSolver->getSettingValue($merchant, $settingName); 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); return $this->settingSolver->getSettingValue($this->getMerchantCurrent(), $settingName);
} }

Loading…
Cancel
Save