aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config/default/container/services_twig.yml
diff options
context:
space:
mode:
authorMaat <maat-pub@mageia.biz>2020-05-08 21:52:11 +0200
committerMaat <maat-pub@mageia.biz>2020-05-08 21:52:11 +0200
commit8ea437e30605e0f66b5220bf904a61d7c1d11ddd (patch)
treee0db2bb4a012d5b06a633160b19f62f4868ecd28 /phpBB/config/default/container/services_twig.yml
parent36bc1870f21fac04736a1049c1d5b8e127d729f4 (diff)
parent2fdd46b36431ae0f58bb2e78e42553168db9a0ff (diff)
downloadforums-8ea437e30605e0f66b5220bf904a61d7c1d11ddd.tar
forums-8ea437e30605e0f66b5220bf904a61d7c1d11ddd.tar.gz
forums-8ea437e30605e0f66b5220bf904a61d7c1d11ddd.tar.bz2
forums-8ea437e30605e0f66b5220bf904a61d7c1d11ddd.tar.xz
forums-8ea437e30605e0f66b5220bf904a61d7c1d11ddd.zip
Merge remote-tracking branch 'upstream/prep-release-3.2.9'
Diffstat (limited to 'phpBB/config/default/container/services_twig.yml')
-rw-r--r--phpBB/config/default/container/services_twig.yml68
1 files changed, 68 insertions, 0 deletions
diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml
new file mode 100644
index 0000000000..a9b5b6d4cd
--- /dev/null
+++ b/phpBB/config/default/container/services_twig.yml
@@ -0,0 +1,68 @@
+parameters:
+ core.template.cache_path: '%core.cache_dir%twig/'
+
+services:
+ template.twig.environment:
+ class: phpbb\template\twig\environment
+ arguments:
+ - '@config'
+ - '@filesystem'
+ - '@path_helper'
+ - '%core.template.cache_path%'
+ - '@ext.manager'
+ - '@template.twig.loader'
+ - '@dispatcher'
+ - []
+ calls:
+ - [setLexer, ['@template.twig.lexer']]
+
+ template.twig.lexer:
+ class: phpbb\template\twig\lexer
+ lazy: true
+ arguments:
+ - '@template.twig.environment'
+
+ template.twig.loader:
+ class: phpbb\template\twig\loader
+ arguments:
+ - '@filesystem'
+
+ template.twig.extensions.collection:
+ class: phpbb\di\service_collection
+ arguments:
+ - '@service_container'
+ tags:
+ - { name: service_collection, tag: twig.extension }
+
+ template.twig.extensions.phpbb:
+ class: phpbb\template\twig\extension
+ arguments:
+ - '@template_context'
+ - '@language'
+ tags:
+ - { name: twig.extension }
+
+ template.twig.extensions.routing:
+ class: phpbb\template\twig\extension\routing
+ arguments:
+ - '@routing.helper'
+ tags:
+ - { name: twig.extension }
+
+ template.twig.extensions.debug:
+ class: Twig_Extension_Debug
+
+ template:
+ class: phpbb\template\twig\twig
+ arguments:
+ - '@path_helper'
+ - '@config'
+ - '@template_context'
+ - '@template.twig.environment'
+ - '%core.template.cache_path%'
+ - '@user'
+ - '@template.twig.extensions.collection'
+ - '@ext.manager'
+
+ template_context:
+ class: phpbb\template\context