mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-03 05:12:37 +02:00
[ticket/12620] Adds a yaml config file
PHPBB3-12620
This commit is contained in:
43
phpBB/config/default/container/services_twig.yml
Normal file
43
phpBB/config/default/container/services_twig.yml
Normal file
@@ -0,0 +1,43 @@
|
||||
parameters:
|
||||
core.template.cache_path: %core.root_path%cache/%core.environment%/twig/
|
||||
|
||||
services:
|
||||
template.twig.environment:
|
||||
class: phpbb\template\twig\environment
|
||||
arguments:
|
||||
- @config
|
||||
- @path_helper
|
||||
- @service_container
|
||||
- %core.template.cache_path%
|
||||
- @ext.manager
|
||||
- @template.twig.loader
|
||||
|
||||
template.twig.lexer:
|
||||
class: phpbb\template\twig\lexer
|
||||
arguments:
|
||||
- @template.twig.environment
|
||||
|
||||
template.twig.loader:
|
||||
class: phpbb\template\twig\loader
|
||||
|
||||
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
|
||||
- @user
|
||||
tags:
|
||||
- { name: twig.extension }
|
||||
|
||||
template.twig.extensions.routing:
|
||||
class: Symfony\Bridge\Twig\Extension\RoutingExtension
|
||||
arguments:
|
||||
- @router
|
||||
tags:
|
||||
- { name: twig.extension }
|
Reference in New Issue
Block a user