diff options
author | Máté Bartus <mate.bartus@gmail.com> | 2016-04-13 10:11:24 +0200 |
---|---|---|
committer | Máté Bartus <mate.bartus@gmail.com> | 2016-04-13 10:11:24 +0200 |
commit | 4c257d47a6e4ddd6a5057b77c83ad78d3b8bd444 (patch) | |
tree | f8110622ff6bd52b75a3c2eb6be1fcd37cf96522 /phpBB/config | |
parent | Merge pull request #4284 from CHItA/ticket/14589 (diff) | |
parent | [ticket/13616] Fix CS + constant in the core extension (diff) | |
download | phpbb-4c257d47a6e4ddd6a5057b77c83ad78d3b8bd444.tar.gz phpbb-4c257d47a6e4ddd6a5057b77c83ad78d3b8bd444.tar.bz2 phpbb-4c257d47a6e4ddd6a5057b77c83ad78d3b8bd444.zip |
Merge pull request #4236 from Nicofuma/ticket/13616
[ticket/13616] Uses symfony/proxy-manager-bridge to lazy load twig lexer
Diffstat (limited to 'phpBB/config')
-rw-r--r-- | phpBB/config/default/container/services_twig.yml | 4 | ||||
-rw-r--r-- | phpBB/config/installer/container/services.yml | 3 |
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 |