utils = $utils ; $this->merchantUtils = $merchantUtils ; } public function getFunctions() { return array( new TwigFunction('getDayByNumber', [$this, 'getDayByNumber']), new TwigFunction('getUnitsList', [$this, 'getUnitsList']), new TwigFunction('getTaxRatesList', [$this, 'getTaxRatesList']), new TwigFunction('getElementByDevAlias', [$this, 'getElementByDevAlias']), ); } public function getFilters() { return [ new TwigFilter('slugify', [$this, 'slugify']), ]; } public function getDayByNumber($number) { return $this->utils->getDayByNumber($number) ; } public function getUnitsList() { return $this->utils->getUnitsList() ; } public function getTaxRatesList() { return $this->merchantUtils->getTaxRatesList() ; } public function getElementByDevAlias($devAlias, $class = PageInterface::class) { return $this->utils->getElementByDevAlias($devAlias, $class) ; } public function slugify($string) { return $this->utils->slugify($string) ; } }