@@ -15,8+15,6 @@ class DeleteUsers extends Command
*/
protected $signature = 'bookstack:delete-users';
*/
protected $signature = 'bookstack:delete-users';
- protected $user;
-
protected $userRepo;
/**
protected $userRepo;
/**
@@ -26,9+24,8 @@ class DeleteUsers extends Command
*/
protected $description = 'Delete users that are not "admin" or system users';
*/
protected $description = 'Delete users that are not "admin" or system users';
- public function __construct(User $user, UserRepo $userRepo)
+ public function __construct(UserRepo $userRepo)
{
{
- $this->user = $user;
$this->userRepo = $userRepo;
parent::__construct();
}
$this->userRepo = $userRepo;
parent::__construct();
}
@@ -38,8+35,8 @@ class DeleteUsers extends Command
$confirm = $this->ask('This will delete all users from the system that are not "admin" or system users. Are you sure you want to continue? (Type "yes" to continue)');
$numDeleted = 0;
if (strtolower(trim($confirm)) === 'yes') {
$confirm = $this->ask('This will delete all users from the system that are not "admin" or system users. Are you sure you want to continue? (Type "yes" to continue)');