From 40e61e4d1ec3da2ea48efda401b0044f2aff6071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20de=20Guillebon?= Date: Tue, 16 Jan 2018 12:46:48 +0100 Subject: [ticket/15508] Remove call to getEnvironment() from parser PHPBB3-15508 --- phpBB/config/default/container/services_twig.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'phpBB/config/default/container/services_twig.yml') diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index a9b5b6d4cd..ce76a6a5ea 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -38,6 +38,7 @@ services: class: phpbb\template\twig\extension arguments: - '@template_context' + - '@template.twig.environment' - '@language' tags: - { name: twig.extension } -- cgit v1.2.1 From 91b89b63742e3b6517a70db78b49b965d1ce4deb Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Sun, 9 Dec 2018 17:36:19 +0100 Subject: [ticket/15905] Create multiple twig extensions PHPBB3-15905 --- phpBB/config/default/container/services_twig.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'phpBB/config/default/container/services_twig.yml') diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index ce76a6a5ea..f3ad95207d 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -43,6 +43,25 @@ services: tags: - { name: twig.extension } + template.twig.extensions.auth: + class: phpbb\template\twig\extension\auth + arguments: + - '@auth' + tags: + - { name: twig.extension } + + template.twig.extensions.avatar: + class: phpbb\template\twig\extension\avatar + tags: + - { name: twig.extension } + + template.twig.extensions.config: + class: phpbb\template\twig\extension\config + arguments: + - '@config' + tags: + - { name: twig.extension } + template.twig.extensions.routing: class: phpbb\template\twig\extension\routing arguments: @@ -50,6 +69,11 @@ services: tags: - { name: twig.extension } + template.twig.extensions.username: + class: phpbb\template\twig\extension\username + tags: + - { name: twig.extension } + template.twig.extensions.debug: class: Twig_Extension_Debug -- cgit v1.2.1 From 7989f3f71fd665aa743d947c7487d41c6f0a33d4 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Sun, 9 Dec 2018 23:52:50 +0100 Subject: [ticket/15905] Try with existing phpbb extension PHPBB3-15905 --- phpBB/config/default/container/services_twig.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'phpBB/config/default/container/services_twig.yml') diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index f3ad95207d..367886804c 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -37,19 +37,13 @@ services: template.twig.extensions.phpbb: class: phpbb\template\twig\extension arguments: + - '@auth' - '@template_context' - '@template.twig.environment' - '@language' tags: - { name: twig.extension } - template.twig.extensions.auth: - class: phpbb\template\twig\extension\auth - arguments: - - '@auth' - tags: - - { name: twig.extension } - template.twig.extensions.avatar: class: phpbb\template\twig\extension\avatar tags: -- cgit v1.2.1 From 133dfd0a84ce258fadab5f48de45684869b14800 Mon Sep 17 00:00:00 2001 From: mrgoldy Date: Mon, 10 Dec 2018 00:10:27 +0100 Subject: [ticket/15905] Try it without auth PHPBB3-15905 --- phpBB/config/default/container/services_twig.yml | 1 - 1 file changed, 1 deletion(-) (limited to 'phpBB/config/default/container/services_twig.yml') diff --git a/phpBB/config/default/container/services_twig.yml b/phpBB/config/default/container/services_twig.yml index 367886804c..6f70155295 100644 --- a/phpBB/config/default/container/services_twig.yml +++ b/phpBB/config/default/container/services_twig.yml @@ -37,7 +37,6 @@ services: template.twig.extensions.phpbb: class: phpbb\template\twig\extension arguments: - - '@auth' - '@template_context' - '@template.twig.environment' - '@language' -- cgit v1.2.1