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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user