diff options
author | mrgoldy <gijsmartens1@gmail.com> | 2018-12-09 17:36:19 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-25 19:49:17 +0200 |
commit | 91b89b63742e3b6517a70db78b49b965d1ce4deb (patch) | |
tree | af7e45950e1c2cb039974629a3dae716b3703130 /phpBB/config/default | |
parent | 36614e6f81bf4022694e3886862d184ebf9dee28 (diff) | |
download | forums-91b89b63742e3b6517a70db78b49b965d1ce4deb.tar forums-91b89b63742e3b6517a70db78b49b965d1ce4deb.tar.gz forums-91b89b63742e3b6517a70db78b49b965d1ce4deb.tar.bz2 forums-91b89b63742e3b6517a70db78b49b965d1ce4deb.tar.xz forums-91b89b63742e3b6517a70db78b49b965d1ce4deb.zip |
[ticket/15905] Create multiple twig extensions
PHPBB3-15905
Diffstat (limited to 'phpBB/config/default')
-rw-r--r-- | phpBB/config/default/container/services_twig.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index ce76a6a5ea..f3ad95207d 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -43,6 +43,25 @@ services: tags: - { name: twig.extension } + template.twig.extensions.auth: + class: phpbb\template\twig\extension\auth + arguments: + - '@auth' + tags: + - { name: twig.extension } + + template.twig.extensions.avatar: + class: phpbb\template\twig\extension\avatar + tags: + - { name: twig.extension } + + template.twig.extensions.config: + class: phpbb\template\twig\extension\config + arguments: + - '@config' + tags: + - { name: twig.extension } + template.twig.extensions.routing: class: phpbb\template\twig\extension\routing arguments: @@ -50,6 +69,11 @@ services: tags: - { name: twig.extension } + template.twig.extensions.username: + class: phpbb\template\twig\extension\username + tags: + - { name: twig.extension } + template.twig.extensions.debug: class: Twig_Extension_Debug |