mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-29 19:20:23 +02:00
[ticket/13616] Updates direct call to twig environment constructor
PHPBB3-13616
This commit is contained in:
@@ -64,7 +64,6 @@ class phpbb_template_allfolder_test extends phpbb_template_template_test_case
|
||||
$config,
|
||||
$filesystem,
|
||||
$path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
$this->extension_manager,
|
||||
$loader,
|
||||
@@ -76,7 +75,7 @@ class phpbb_template_allfolder_test extends phpbb_template_template_test_case
|
||||
)
|
||||
);
|
||||
$this->template = new \phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $this->user)), $this->extension_manager);
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
|
||||
$this->template_path = $this->test_path . '/templates';
|
||||
$this->ext_template_path = 'tests/extension/ext/vendor4/bar/styles/all/template';
|
||||
|
@@ -158,7 +158,6 @@ Zeta test event in all',
|
||||
$config,
|
||||
$filesystem,
|
||||
$path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
$this->extension_manager,
|
||||
$loader,
|
||||
@@ -170,7 +169,7 @@ Zeta test event in all',
|
||||
)
|
||||
);
|
||||
$this->template = new \phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $this->user)), $this->extension_manager);
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
|
||||
$this->template->set_custom_style(((!empty($style_names)) ? $style_names : 'silver'), array($this->template_path));
|
||||
}
|
||||
|
@@ -50,7 +50,6 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||
$config,
|
||||
$filesystem,
|
||||
$this->phpbb_path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
@@ -80,7 +79,7 @@ class phpbb_template_template_includecss_test extends phpbb_template_template_te
|
||||
)
|
||||
)
|
||||
);
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
$this->template->set_custom_style('tests', array($this->template_path, $this->parent_template_path));
|
||||
}
|
||||
|
||||
|
@@ -102,7 +102,6 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
$config,
|
||||
$filesystem,
|
||||
$path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
@@ -114,7 +113,7 @@ class phpbb_template_template_test_case extends phpbb_test_case
|
||||
)
|
||||
);
|
||||
$this->template = new phpbb\template\twig\twig($path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $this->user)));
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
$this->template->set_custom_style('tests', $this->template_path);
|
||||
}
|
||||
|
||||
|
@@ -45,7 +45,6 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
||||
$config,
|
||||
$filesystem,
|
||||
$this->phpbb_path_helper,
|
||||
$container,
|
||||
$cache_path,
|
||||
null,
|
||||
$loader,
|
||||
@@ -57,7 +56,7 @@ class phpbb_template_template_test_case_with_tree extends phpbb_template_templat
|
||||
)
|
||||
);
|
||||
$this->template = new phpbb\template\twig\twig($this->phpbb_path_helper, $config, $context, $twig, $cache_path, $this->user, array(new \phpbb\template\twig\extension($context, $this->user)));
|
||||
$container->set('template.twig.lexer', new \phpbb\template\twig\lexer($twig));
|
||||
$twig->setLexer(new \phpbb\template\twig\lexer($twig));
|
||||
$this->template->set_custom_style('tests', array($this->template_path, $this->parent_template_path));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user