From 598d1c7f49586110ad2b70c61b178c41f078b094 Mon Sep 17 00:00:00 2001 From: Ruben Calvo Date: Sat, 18 Jan 2025 23:15:18 +0100 Subject: [PATCH] [ticket/17361] Change order of arguments PHPBB-17361 --- .../default/container/services_storage.yml | 2 +- phpBB/phpbb/storage/file_tracker.php | 20 +++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/phpBB/config/default/container/services_storage.yml b/phpBB/config/default/container/services_storage.yml index 8db8ceaede..98a44fae1f 100644 --- a/phpBB/config/default/container/services_storage.yml +++ b/phpBB/config/default/container/services_storage.yml @@ -123,7 +123,7 @@ services: storage.file_tracker: class: phpbb\storage\file_tracker arguments: - - '@dbal.conn' - '@cache.driver' + - '@dbal.conn' - '%tables.storage%' diff --git a/phpBB/phpbb/storage/file_tracker.php b/phpBB/phpbb/storage/file_tracker.php index aa05756996..6a34fde239 100644 --- a/phpBB/phpbb/storage/file_tracker.php +++ b/phpBB/phpbb/storage/file_tracker.php @@ -19,17 +19,17 @@ use phpbb\storage\exception\storage_exception; class file_tracker { - /** - * @var db - */ - protected $db; - /** * Cache driver * @var cache */ protected $cache; + /** + * @var db + */ + protected $db; + /** * @var string */ @@ -38,14 +38,14 @@ class file_tracker /** * Constructor * - * @param db $db - * @param cache $cache - * @param string $storage_table + * @param cache $cache + * @param db $db + * @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->db = $db; $this->storage_table = $storage_table; }