Skip to content

Commit

Permalink
Use validator on interactive mode
Browse files Browse the repository at this point in the history
  • Loading branch information
yceruto committed Sep 6, 2017
1 parent a8e9adc commit 3c4538d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/DeleteUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function interact(InputInterface $input, OutputInterface $output)
'',
]);

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

Expand Down

0 comments on commit 3c4538d

Please sign in to comment.