mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-29 20:29:22 +02:00
[ticket/14273] Remove unused core.root_path dependency in files.upload service
PHPBB3-14273
This commit is contained in:
parent
402f36e42d
commit
a92083169a
phpBB
@ -25,7 +25,6 @@ services:
|
||||
- @language
|
||||
- @php_ini
|
||||
- @request
|
||||
- %core.root_path%
|
||||
|
||||
files.types.form:
|
||||
class: phpbb\files\types\form
|
||||
|
@ -65,9 +65,6 @@ class upload
|
||||
/** @var request_interface Request class */
|
||||
protected $request;
|
||||
|
||||
/** @var string phpBB root path */
|
||||
protected $phpbb_root_path;
|
||||
|
||||
/**
|
||||
* Init file upload class.
|
||||
*
|
||||
@ -76,16 +73,14 @@ class upload
|
||||
* @param language $language Language class
|
||||
* @param \bantu\IniGetWrapper\IniGetWrapper $php_ini ini_get() wrapper
|
||||
* @param request_interface $request Request class
|
||||
* @param string $phpbb_root_path phpBB root path
|
||||
*/
|
||||
public function __construct(filesystem_interface $filesystem, factory $factory, language $language, \bantu\IniGetWrapper\IniGetWrapper $php_ini, request_interface $request, $phpbb_root_path)
|
||||
public function __construct(filesystem_interface $filesystem, factory $factory, language $language, \bantu\IniGetWrapper\IniGetWrapper $php_ini, request_interface $request)
|
||||
{
|
||||
$this->filesystem = $filesystem;
|
||||
$this->factory = $factory;
|
||||
$this->language = $language;
|
||||
$this->php_ini = $php_ini;
|
||||
$this->request = $request;
|
||||
$this->phpbb_root_path = $phpbb_root_path;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user