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

[ticket/13804] Make template's user dependency optional

PHPBB3-13804
This commit is contained in:
MateBartus
2015-05-01 19:04:21 +02:00
parent de687f32ed
commit 7b301e22f3
14 changed files with 72 additions and 29 deletions

View File

@@ -186,21 +186,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

View File

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