summaryrefslogtreecommitdiffstats
path: root/core/Command/TwoFactorAuth/Cleanup.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command/TwoFactorAuth/Cleanup.php')
-rw-r--r--core/Command/TwoFactorAuth/Cleanup.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/core/Command/TwoFactorAuth/Cleanup.php b/core/Command/TwoFactorAuth/Cleanup.php
index 7d3fc3c33f7..1b2c6e22632 100644
--- a/core/Command/TwoFactorAuth/Cleanup.php
+++ b/core/Command/TwoFactorAuth/Cleanup.php
@@ -27,17 +27,20 @@ declare(strict_types=1);
namespace OC\Core\Command\TwoFactorAuth;
use OCP\Authentication\TwoFactorAuth\IRegistry;
+use OCP\IUserManager;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
class Cleanup extends Base {
- private IRegistry $registry;
-
- public function __construct(IRegistry $registry) {
- parent::__construct();
-
- $this->registry = $registry;
+ public function __construct(
+ private IRegistry $registry,
+ IUserManager $userManager,
+ ) {
+ parent::__construct(
+ null,
+ $userManager,
+ );
}
protected function configure() {