From: Raphaƫl Gertz Date: Sun, 25 Feb 2018 04:58:43 +0000 (+0100) Subject: Add base64 extensions in twig X-Git-Tag: 0.0.1~10 X-Git-Url: https://git.rapsys.eu/packbundle/commitdiff_plain/7b8322b01cb424edd623e0745df2e7b07792180d Add base64 extensions in twig --- diff --git a/Resources/config/services.yml b/Resources/config/services.yml index dc64b83..7d16276 100644 --- a/Resources/config/services.yml +++ b/Resources/config/services.yml @@ -1,5 +1,8 @@ services: rapsys_pack.twig.pack_extension: - class: Rapsys\PackBundle\Twig\PackExtension - arguments: [ '@file_locator', '@service_container' ] - tags: [ twig.extension ] + class: Rapsys\PackBundle\Twig\PackExtension + arguments: [ '@file_locator', '@service_container', '@assets.packages' ] + tags: [ twig.extension ] + rapsys_pack.twig.base64: + class: Rapsys\PackBundle\Twig\Base64Extension + tags: [ twig.extension ] diff --git a/Twig/Base64Extension.php b/Twig/Base64Extension.php new file mode 100644 index 0000000..6a0f3e2 --- /dev/null +++ b/Twig/Base64Extension.php @@ -0,0 +1,12 @@ +