From ea9002dff14b7764095a93b1556e3dbe82b32a7c Mon Sep 17 00:00:00 2001 From: Daniel Seifert Date: Fri, 7 Jun 2024 13:25:29 +0200 Subject: [PATCH] add text, array, pcre and date functionality --- composer.json | 3 ++- services.yaml | 15 ++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9b119df..9e31b2f 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,8 @@ ], "require": { "oxid-esales/oxideshop-ce": "^7.0.0", - "twig/twig": "^3.6" + "twig/twig": "^3.6", + "jasny/twig-extensions": "^1.3.0" }, "autoload": { "psr-4": { diff --git a/services.yaml b/services.yaml index 799bb8b..70e850a 100644 --- a/services.yaml +++ b/services.yaml @@ -9,4 +9,17 @@ services: tags: ['twig.extension'] D3\OxidTwigExtensions\ShopConfigurationExtension: - tags: ['twig.extension'] \ No newline at end of file + tags: ['twig.extension'] + +# requires intl extension +# Jasny\Twig\DateExtension: +# tags: ['twig.extension'] + + Jasny\Twig\PcreExtension: + tags: ['twig.extension'] + + Jasny\Twig\TextExtension: + tags: [ 'twig.extension' ] + + Jasny\Twig\ArrayExtension: + tags: [ 'twig.extension' ] \ No newline at end of file