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

[ticket/10756] Creating locator interface

Creating locator interface to be used in template class

PHPBB3-10756
This commit is contained in:
Vjacheslav Trushkin
2012-04-03 13:19:03 +03:00
committed by Nils Adermann
parent ef295a2860
commit ea3a2ef223
3 changed files with 138 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ if (!defined('IN_PHPBB'))
*
* @package phpBB3
*/
class phpbb_style_resource_locator
class phpbb_style_resource_locator implements phpbb_template_locator
{
/**
* Paths to style directories.

View File

@@ -63,8 +63,8 @@ class phpbb_style_template
private $user;
/**
* Style resource locator
* @var phpbb_style_resource_locator
* Template locator
* @var phpbb_template_locator
*/
private $locator;
@@ -85,10 +85,10 @@ class phpbb_style_template
*
* @param string $phpbb_root_path phpBB root path
* @param user $user current user
* @param phpbb_style_resource_locator $locator style resource locator
* @param phpbb_template_locator $locator template locator
* @param phpbb_style_path_provider $provider style path provider
*/
public function __construct($phpbb_root_path, $phpEx, $config, $user, phpbb_style_resource_locator $locator, phpbb_style_path_provider_interface $provider)
public function __construct($phpbb_root_path, $phpEx, $config, $user, phpbb_template_locator $locator, phpbb_style_path_provider_interface $provider)
{
$this->phpbb_root_path = $phpbb_root_path;
$this->phpEx = $phpEx;