Skip to content

Commit 3c4538d

Browse files
committed
Use validator on interactive mode
1 parent a8e9adc commit 3c4538d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/DeleteUserCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
100100
'',
101101
]);
102102

103-
$username = $this->io->ask('Username', null, [$this, 'usernameValidator']);
103+
$username = $this->io->ask('Username', null, [$this->validator, 'validateUsername']);
104104
$input->setArgument('username', $username);
105105
}
106106

0 commit comments

Comments
 (0)