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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user