aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/config
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2016-03-23 11:26:30 +0100
committerTristan Darricau <tristan.darricau@sensiolabs.com>2016-04-03 16:22:07 +0200
commit5cdbef860de6eccbf1ad62390668acc7fbccb46a (patch)
tree57f24452d3e51a0708e05fcf185000069406598c /phpBB/config
parente8762ce3cb25faddfb1797377208876e1e65c785 (diff)
downloadforums-5cdbef860de6eccbf1ad62390668acc7fbccb46a.tar
forums-5cdbef860de6eccbf1ad62390668acc7fbccb46a.tar.gz
forums-5cdbef860de6eccbf1ad62390668acc7fbccb46a.tar.bz2
forums-5cdbef860de6eccbf1ad62390668acc7fbccb46a.tar.xz
forums-5cdbef860de6eccbf1ad62390668acc7fbccb46a.zip
[ticket/13616] Uses symfony/proxy-manager-bridge to lazy load twig lexer
PHPBB3-13616
Diffstat (limited to 'phpBB/config')
-rw-r--r--phpBB/config/default/container/services_twig.yml4
-rw-r--r--phpBB/config/installer/container/services.yml3
2 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml
index dc08d65e1a..3ca6d62c07 100644
--- a/phpBB/config/default/container/services_twig.yml
+++ b/phpBB/config/default/container/services_twig.yml
@@ -8,14 +8,16 @@ services:
- '@config'
- '@filesystem'
- '@path_helper'
- - '@service_container'
- '%core.template.cache_path%'
- '@ext.manager'
- '@template.twig.loader'
- []
+ calls:
+ - [setLexer, ['@template.twig.lexer']]
template.twig.lexer:
class: phpbb\template\twig\lexer
+ lazy: true
arguments:
- '@template.twig.environment'
diff --git a/phpBB/config/installer/container/services.yml b/phpBB/config/installer/container/services.yml
index 97fc1256fd..4c3ed3bfcb 100644
--- a/phpBB/config/installer/container/services.yml
+++ b/phpBB/config/installer/container/services.yml
@@ -81,11 +81,12 @@ services:
- '@config'
- '@filesystem'
- '@path_helper'
- - '@service_container'
- '%core.template.cache_path%'
- null
- '@template.twig.loader'
- []
+ calls:
+ - [setLexer, ['@template.twig.lexer']]
console.exception_subscriber:
class: phpbb\console\exception_subscriber