瀏覽代碼

Correctif Utils : ParameterBag

reduction
Guillaume 4 年之前
父節點
當前提交
3aeaad18e5
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      ShopBundle/Services/Utils.php

+ 5
- 1
ShopBundle/Services/Utils.php 查看文件

@@ -8,14 +8,18 @@ use Lc\ShopBundle\Context\MerchantUtilsInterface;
use Lc\ShopBundle\Context\PageInterface;
use Lc\ShopBundle\Context\TaxRateInterface;
use Lc\ShopBundle\Context\UnitInterface;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
use Symfony\Component\HttpFoundation\ParameterBag;

class Utils
{
protected $em ;
protected $parameterBag ;

public function __construct(EntityManagerInterface $em)
public function __construct(EntityManagerInterface $em, ParameterBagInterface $parameterBag)
{
$this->em = $em ;
$this->parameterBag = $parameterBag ;
}

public static function getDayByNumber($number, $lang = 'fr')

Loading…
取消
儲存