diff options
| author | MateBartus <mate.bartus@gmail.com> | 2015-05-01 19:04:21 +0200 |
|---|---|---|
| committer | MateBartus <mate.bartus@gmail.com> | 2015-05-05 19:16:49 +0200 |
| commit | 7b301e22f32e9209bb4e3ea17a5637a84a4ef908 (patch) | |
| tree | 20c56c1c0982976a0234409bdd7bf05050353545 /phpBB/config/default/container | |
| parent | de687f32ed8df438cb798d98f1a5dda7a5ac76dc (diff) | |
| download | forums-7b301e22f32e9209bb4e3ea17a5637a84a4ef908.tar forums-7b301e22f32e9209bb4e3ea17a5637a84a4ef908.tar.gz forums-7b301e22f32e9209bb4e3ea17a5637a84a4ef908.tar.bz2 forums-7b301e22f32e9209bb4e3ea17a5637a84a4ef908.tar.xz forums-7b301e22f32e9209bb4e3ea17a5637a84a4ef908.zip | |
[ticket/13804] Make template's user dependency optional
PHPBB3-13804
Diffstat (limited to 'phpBB/config/default/container')
| -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 670ea3bd61..73dcf5db4c 100644 --- a/phpBB/config/default/container/services.yml +++ b/phpBB/config/default/container/services.yml @@ -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 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 |
