From e3ba387f8617602b9d0d685d401c3fc5460f90f4 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 20 May 2019 22:13:09 +0100 Subject: [PATCH] Add SponsorsExtension --- .../src/Resources/config/services.yml | 4 +++ .../src/TwigExtension/SponsorsExtension.php | 26 +++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/Sponsors/src/TwigExtension/SponsorsExtension.php diff --git a/src/Sponsors/src/Resources/config/services.yml b/src/Sponsors/src/Resources/config/services.yml index 0baad47..5dc4d0d 100644 --- a/src/Sponsors/src/Resources/config/services.yml +++ b/src/Sponsors/src/Resources/config/services.yml @@ -1 +1,5 @@ services: + twig.app.sponsors: + class: 'App\Sponsors\TwigExtension\SponsorsExtension' + tags: + - { name: twig.extension } diff --git a/src/Sponsors/src/TwigExtension/SponsorsExtension.php b/src/Sponsors/src/TwigExtension/SponsorsExtension.php new file mode 100644 index 0000000..67fdea3 --- /dev/null +++ b/src/Sponsors/src/TwigExtension/SponsorsExtension.php @@ -0,0 +1,26 @@ +