]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Extension/PackExtension.php
Add map controller
[packbundle] / Extension / PackExtension.php
index ac0071a94a1ea6b9ea0afdc2bcbd450dcefe230f..d32f5bfcb0af28f3ae7bb75a87e795acb32ee82f 100644 (file)
@@ -18,6 +18,7 @@ use Twig\Extension\AbstractExtension;
 
 use Rapsys\PackBundle\Parser\TokenParser;
 use Rapsys\PackBundle\RapsysPackBundle;
 
 use Rapsys\PackBundle\Parser\TokenParser;
 use Rapsys\PackBundle\RapsysPackBundle;
+use Rapsys\PackBundle\Util\IntlUtil;
 use Rapsys\PackBundle\Util\SluggerUtil;
 
 /**
 use Rapsys\PackBundle\Util\SluggerUtil;
 
 /**
@@ -100,7 +101,10 @@ class PackExtension extends AbstractExtension {
                        new \Twig\TwigFilter('slug', [$this->slugger, 'slug']),
                        new \Twig\TwigFilter('intldate', [$this->intl, 'date'], ['needs_environment' => true]),
                        new \Twig\TwigFilter('intlnumber', [$this->intl, 'number']),
                        new \Twig\TwigFilter('slug', [$this->slugger, 'slug']),
                        new \Twig\TwigFilter('intldate', [$this->intl, 'date'], ['needs_environment' => true]),
                        new \Twig\TwigFilter('intlnumber', [$this->intl, 'number']),
-                       new \Twig\TwigFilter('intlcurrency', [$this->intl, 'currency'])
+                       new \Twig\TwigFilter('intlcurrency', [$this->intl, 'currency']),
+                       new \Twig\TwigFilter('download', 'file_get_contents', [false, null]),
+                       new \Twig\TwigFilter('base64_encode', 'base64_encode'),
+                       new \Twig\TwigFilter('base64_decode', 'base64_decode')
                ];
        }
 
                ];
        }