[ticket/17361] Change order of arguments

PHPBB-17361
This commit is contained in:
Ruben Calvo 2025-01-18 23:15:18 +01:00
parent 90bd9d006e
commit 598d1c7f49
No known key found for this signature in database
2 changed files with 11 additions and 11 deletions

View file

@ -123,7 +123,7 @@ services:
storage.file_tracker: storage.file_tracker:
class: phpbb\storage\file_tracker class: phpbb\storage\file_tracker
arguments: arguments:
- '@dbal.conn'
- '@cache.driver' - '@cache.driver'
- '@dbal.conn'
- '%tables.storage%' - '%tables.storage%'

View file

@ -19,17 +19,17 @@ use phpbb\storage\exception\storage_exception;
class file_tracker class file_tracker
{ {
/**
* @var db
*/
protected $db;
/** /**
* Cache driver * Cache driver
* @var cache * @var cache
*/ */
protected $cache; protected $cache;
/**
* @var db
*/
protected $db;
/** /**
* @var string * @var string
*/ */
@ -38,14 +38,14 @@ class file_tracker
/** /**
* Constructor * Constructor
* *
* @param db $db * @param cache $cache
* @param cache $cache * @param db $db
* @param string $storage_table * @param string $storage_table
*/ */
public function __construct(db $db, cache $cache, string $storage_table) public function __construct(cache $cache,db $db, string $storage_table)
{ {
$this->db = $db;
$this->cache = $cache; $this->cache = $cache;
$this->db = $db;
$this->storage_table = $storage_table; $this->storage_table = $storage_table;
} }