]> Raphaël G. Git Repositories - packbundle/commitdiff
Remove base64 extension
authorRaphaël Gertz <git@rapsys.eu>
Sun, 25 Mar 2018 00:49:31 +0000 (01:49 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Sun, 25 Mar 2018 00:49:31 +0000 (01:49 +0100)
Resources/config/services.yml
Twig/Base64Extension.php [deleted file]

index 7d16276a942ca93f03621e65d4ee8980bb33f403..47ea68fed666c7eb99761aeb3bff44c1d1e0f94c 100644 (file)
@@ -3,6 +3,3 @@ services:
         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
deleted file mode 100644 (file)
index 6a0f3e2..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-// src/Rapsys/PackBundle/Twig/Base64Extension.php
-namespace Rapsys\PackBundle\Twig;
-
-class Base64Extension extends \Twig_Extension {
-       public function getFilters() {
-               return array(
-                       new \Twig_SimpleFilter('base64_encode', 'base64_encode'),
-                       new \Twig_SimpleFilter('base64_decode', 'base64_decode')
-               );
-       }
-}