From 98531635649facad0a9f1fd930884c3ae7492794 Mon Sep 17 00:00:00 2001 From: Awilum Date: Thu, 25 Apr 2019 19:53:03 +0300 Subject: [PATCH] Flextype: JsonParserTwigExtension - updates. --- flextype/twig/JsonParserTwigExtension.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flextype/twig/JsonParserTwigExtension.php b/flextype/twig/JsonParserTwigExtension.php index 7d221d89..ead72368 100644 --- a/flextype/twig/JsonParserTwigExtension.php +++ b/flextype/twig/JsonParserTwigExtension.php @@ -22,8 +22,8 @@ class JsonParserTwigExtension extends \Twig_Extension public function getFunctions() { return [ - new \Twig_SimpleFunction('json_parser_decode', array($this, 'json_parser_decode')), - new \Twig_SimpleFunction('json_parser_encode', array($this, 'json_parser_encode')) + new \Twig_SimpleFunction('json_parser_decode', array($this, 'decode')), + new \Twig_SimpleFunction('json_parser_encode', array($this, 'encode')) ]; }