1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 09:46:46 +02:00

[ticket/15214] Get event dispatcher from environment rather than as dependency

Also this will allow to significantly reduce unrelated tests changes.

PHPBB3-15214
This commit is contained in:
rxu
2025-05-20 16:54:03 +07:00
parent 5e0dc9ef2e
commit 3a5247d01b
16 changed files with 34 additions and 39 deletions

View File

@@ -407,7 +407,7 @@ class phpbb_functional_test_case extends phpbb_test_case
'autoescape' => false,
]
);
$twig_extension = new \phpbb\template\twig\extension($context, $twig, $lang, $phpbb_dispatcher);
$twig_extension = new \phpbb\template\twig\extension($context, $twig, $lang);
$container->set('template.twig.extensions.phpbb', $twig_extension);
$twig_extensions_collection = new \phpbb\di\service_collection($container);