mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 12:29:43 +02:00
[ŧicket/11912] Get rid of obsolete variables in content_guesser
PHPBB3-11912
This commit is contained in:
parent
4af6270d0f
commit
973682cb2d
@ -11,9 +11,6 @@ services:
|
|||||||
|
|
||||||
mimetype.content_guesser:
|
mimetype.content_guesser:
|
||||||
class: phpbb\mimetype\content_guesser
|
class: phpbb\mimetype\content_guesser
|
||||||
arguments:
|
|
||||||
- %core.root_path%
|
|
||||||
- @php_ini
|
|
||||||
tags:
|
tags:
|
||||||
- { name: mimetype.guessers }
|
- { name: mimetype.guessers }
|
||||||
|
|
||||||
|
@ -23,16 +23,6 @@ if (!defined('IN_PHPBB'))
|
|||||||
|
|
||||||
class content_guesser
|
class content_guesser
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* @var phpbb_root_path
|
|
||||||
*/
|
|
||||||
protected $phpbb_root_path;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var \phpbb\php\ini
|
|
||||||
*/
|
|
||||||
protected $php_ini;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var file extension map
|
* @var file extension map
|
||||||
*/
|
*/
|
||||||
@ -488,24 +478,7 @@ class content_guesser
|
|||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @const mime_magic_file
|
* @inheritdoc
|
||||||
*/
|
|
||||||
const mime_magic_file = 'phpbb/mimetype/fixture/magic.mgc';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Construct a content_guesser object
|
|
||||||
*
|
|
||||||
* @param string $phpbb_root_path phpBB root path
|
|
||||||
* @param \phpbb\php\ini $php_ini
|
|
||||||
*/
|
|
||||||
public function __construct($phpbb_root_path, \phpbb\php\ini $php_ini)
|
|
||||||
{
|
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
|
||||||
$this->php_ini = $php_ini;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
public function is_supported()
|
public function is_supported()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user