1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-05 16:27:38 +02:00

[feature/template-engine] Dependency inject locator into template.

PHPBB3-9726
This commit is contained in:
Oleg Pudeyev
2011-08-09 23:28:40 -04:00
parent 66232035aa
commit acb767f14d
6 changed files with 14 additions and 7 deletions

View File

@@ -72,14 +72,15 @@ class phpbb_template
*
* @param string $phpbb_root_path phpBB root path
* @param user $user current user
* @param phpbb_template_locator $locator template locator
*/
public function __construct($phpbb_root_path, $phpEx, $config, $user)
public function __construct($phpbb_root_path, $phpEx, $config, $user, phpbb_template_locator $locator)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;
$this->config = $config;
$this->user = $user;
$this->locator = new phpbb_template_locator();
$this->locator = $locator;
}
/**