diff --git a/src/Classes/Phalcon/Twig.php b/src/Classes/Phalcon/Twig.php index 15e23b28..f4f966fd 100644 --- a/src/Classes/Phalcon/Twig.php +++ b/src/Classes/Phalcon/Twig.php @@ -118,6 +118,9 @@ protected function registryFunctions(DiInterface $di): void // add lcfirst filter $this->twig->addFilter(new TwigFilter('lcfirst', 'lcfirst')); + // add json_decode filter + $this->twig->addFilter(new TwigFilter('json_decode', 'json_decode')); + // add price filter $this->twig->addFilter(new TwigFilter('price', function ($price, $decimals = 2) use ($di) { return $di->getShared("numberService")->getPriceFormat((float) $price, $decimals);