1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 14:00:31 +02:00

[feature/merging-style-components] Initializing locator and provider separately

Moving locator and path provider initialization out of style class

PHPBB3-10632
This commit is contained in:
Vjacheslav Trushkin
2012-03-31 17:38:30 +03:00
parent 9611997552
commit 360312f599
7 changed files with 27 additions and 17 deletions

View File

@@ -71,7 +71,9 @@ class phpbb_template_template_inheritance_test extends phpbb_template_template_t
$this->template_path = dirname(__FILE__) . '/templates';
$this->parent_template_path = dirname(__FILE__) . '/parent_templates';
$this->style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, false);
$this->style_resource_locator = new phpbb_style_path_provider();
$this->style_provider = new phpbb_style_path_provider();
$this->style = new phpbb_style($phpbb_root_path, $phpEx, $config, $user, $this->style_resource_locator, $this->style_provider);
$this->style->set_custom_style('tests', array($this->template_path, $this->parent_template_path), '');
$this->template = $this->style->template;
}