diff options
author | Nicofuma <github@nicofuma.fr> | 2015-05-14 17:03:12 +0200 |
---|---|---|
committer | Nicofuma <github@nicofuma.fr> | 2015-05-14 17:03:12 +0200 |
commit | ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc (patch) | |
tree | 3b0af71583b22d3de171273defba147cf4ea5725 /phpBB/config | |
parent | a26ab86dc63b196c79d86f3da36b8596a7beeb02 (diff) | |
parent | 281f2ef2dacc7d635646edb3897fba8ff6f66d25 (diff) | |
download | forums-ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc.tar forums-ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc.tar.gz forums-ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc.tar.bz2 forums-ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc.tar.xz forums-ba9ac01dc0dc5297ce613ff3ca62cec9e5d1a8fc.zip |
Merge pull request #3581 from MateBartus/ticket/13804
[ticket/13804] Make template's user dependency optional
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/default/container/services.yml | 15 | ||||
-rw-r--r-- | phpBB/config/default/container/services_twig.yml | 15 |
2 files changed, 15 insertions, 15 deletions
diff --git a/phpBB/config/default/container/services.yml b/phpBB/config/default/container/services.yml index 95d624a8ae..6577a44195 100644 --- a/phpBB/config/default/container/services.yml +++ b/phpBB/config/default/container/services.yml @@ -168,21 +168,6 @@ services: request_stack: class: Symfony\Component\HttpFoundation\RequestStack - template: - class: phpbb\template\twig\twig - arguments: - - @path_helper - - @config - - @user - - @template_context - - @template.twig.environment - - %core.template.cache_path% - - @template.twig.extensions.collection - - @ext.manager - - template_context: - class: phpbb\template\context - upload_imagesize: class: fastImageSize\fastImageSize diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index 9ab004731e..d8e1ae0769 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -47,3 +47,18 @@ services: 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 |