aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Command/Object/Delete.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Command/Object/Delete.php')
-rw-r--r--apps/files/lib/Command/Object/Delete.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/apps/files/lib/Command/Object/Delete.php b/apps/files/lib/Command/Object/Delete.php
index 9742778e271..5000eeb6ee5 100644
--- a/apps/files/lib/Command/Object/Delete.php
+++ b/apps/files/lib/Command/Object/Delete.php
@@ -34,10 +34,9 @@ use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Question\ConfirmationQuestion;
class Delete extends Command {
- private ObjectUtil $objectUtils;
-
- public function __construct(ObjectUtil $objectUtils) {
- $this->objectUtils = $objectUtils;
+ public function __construct(
+ private ObjectUtil $objectUtils,
+ ) {
parent::__construct();
}
@@ -73,6 +72,6 @@ class Delete extends Command {
if ($helper->ask($input, $output, $question)) {
$objectStore->deleteObject($object);
}
- return 0;
+ return self::SUCCESS;
}
}