|
|
|
|
|
|
|
|
use Lc\ShopBundle\Context\PageInterface; |
|
|
use Lc\ShopBundle\Context\PageInterface; |
|
|
use Lc\ShopBundle\Context\TaxRateInterface; |
|
|
use Lc\ShopBundle\Context\TaxRateInterface; |
|
|
use Lc\ShopBundle\Context\UnitInterface; |
|
|
use Lc\ShopBundle\Context\UnitInterface; |
|
|
|
|
|
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; |
|
|
|
|
|
use Symfony\Component\HttpFoundation\ParameterBag; |
|
|
|
|
|
|
|
|
class Utils |
|
|
class Utils |
|
|
{ |
|
|
{ |
|
|
protected $em ; |
|
|
protected $em ; |
|
|
|
|
|
protected $parameterBag ; |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em) |
|
|
|
|
|
|
|
|
public function __construct(EntityManagerInterface $em, ParameterBagInterface $parameterBag) |
|
|
{ |
|
|
{ |
|
|
$this->em = $em ; |
|
|
$this->em = $em ; |
|
|
|
|
|
$this->parameterBag = $parameterBag ; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static function getDayByNumber($number, $lang = 'fr') |
|
|
public static function getDayByNumber($number, $lang = 'fr') |