aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib/Command/RestoreAllFiles.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_trashbin/lib/Command/RestoreAllFiles.php')
-rw-r--r--apps/files_trashbin/lib/Command/RestoreAllFiles.php23
1 files changed, 7 insertions, 16 deletions
diff --git a/apps/files_trashbin/lib/Command/RestoreAllFiles.php b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
index 81b59543a4e..cb4e7f97ecd 100644
--- a/apps/files_trashbin/lib/Command/RestoreAllFiles.php
+++ b/apps/files_trashbin/lib/Command/RestoreAllFiles.php
@@ -32,17 +32,6 @@ class RestoreAllFiles extends Base {
'all' => self::SCOPE_ALL
];
- /** @var IUserManager */
- protected $userManager;
-
- /** @var IRootFolder */
- protected $rootFolder;
-
- /** @var \OCP\IDBConnection */
- protected $dbConnection;
-
- protected ITrashManager $trashManager;
-
/** @var IL10N */
protected $l10n;
@@ -53,12 +42,14 @@ class RestoreAllFiles extends Base {
* @param ITrashManager $trashManager
* @param IFactory $l10nFactory
*/
- public function __construct(IRootFolder $rootFolder, IUserManager $userManager, IDBConnection $dbConnection, ITrashManager $trashManager, IFactory $l10nFactory) {
+ public function __construct(
+ protected IRootFolder $rootFolder,
+ protected IUserManager $userManager,
+ protected IDBConnection $dbConnection,
+ protected ITrashManager $trashManager,
+ IFactory $l10nFactory,
+ ) {
parent::__construct();
- $this->userManager = $userManager;
- $this->rootFolder = $rootFolder;
- $this->dbConnection = $dbConnection;
- $this->trashManager = $trashManager;
$this->l10n = $l10nFactory->get('files_trashbin');
}