X-Git-Url: https://git.rapsys.eu/packbundle/blobdiff_plain/b4279c702b5ec4553538e19b2ecaab2348791331..4c448c2ede1a18b6ffcd7e147f05d4f1c7b5857f:/Extension/PackExtension.php diff --git a/Extension/PackExtension.php b/Extension/PackExtension.php index ac0071a..d32f5bf 100644 --- a/Extension/PackExtension.php +++ b/Extension/PackExtension.php @@ -18,6 +18,7 @@ use Twig\Extension\AbstractExtension; use Rapsys\PackBundle\Parser\TokenParser; use Rapsys\PackBundle\RapsysPackBundle; +use Rapsys\PackBundle\Util\IntlUtil; 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('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') ]; }