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

[ticket/11852] Split filesystem and path_helper into 2 classes

PHPBB3-11852
This commit is contained in:
Joas Schilling
2013-09-26 15:34:44 +02:00
parent e8303bc319
commit 7525c49d45
26 changed files with 108 additions and 290 deletions

View File

@@ -21,17 +21,17 @@ class asset
{
protected $components = array();
/** @var \phpbb\filesystem **/
protected $phpbb_filesystem;
/** @var \phpbb\path_helper **/
protected $path_helper;
/**
* Constructor
*
* @param string $url URL
*/
public function __construct($url, \phpbb\filesystem $phpbb_filesystem)
public function __construct($url, \phpbb\path_helper $path_helper)
{
$this->phpbb_filesystem = $phpbb_filesystem;
$this->path_helper = $path_helper;
$this->set_url($url);
}
@@ -119,7 +119,7 @@ class asset
*/
public function get_url()
{
return $this->phpbb_filesystem->update_web_root_path($this->join_url($this->components));
return $this->path_helper->update_web_root_path($this->join_url($this->components));
}
/**