]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Resources/config/services.yml
Add base64 extensions in twig
[packbundle] / Resources / config / services.yml
index 324718243d344b4b8b5335ce5b5e718d7b1bb262..7d16276a942ca93f03621e65d4ee8980bb33f403 100644 (file)
@@ -1,15 +1,8 @@
 services:
     rapsys_pack.twig.pack_extension:
 services:
     rapsys_pack.twig.pack_extension:
-         class: Rapsys\PackBundle\Twig\PackExtension
-         arguments: [ '@file_locator', '@service_container' ]
-         tags:
-             - { name: twig.extension }
-#    rapsys_pack.cpack:
-#         class: Rapsys\PackBundle\Cpack
-#         arguments: [ '/usr/local/bin/cpack' ]
-#    rapsys_pack.jpack:
-#         class: Rapsys\PackBundle\Jpack
-#         arguments: [ '/usr/local/bin/jpack' ]
-#
-#        class: Rapsys\PackBundle\Example
-#        arguments: ["@service_id", "plain_value", "%parameter%"]
+        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 ]