1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/15905] Create multiple twig extensions

PHPBB3-15905
This commit is contained in:
mrgoldy
2018-12-09 17:36:19 +01:00
committed by Marc Alexander
parent 36614e6f81
commit 91b89b6374
5 changed files with 344 additions and 0 deletions

View File

@@ -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