Skip to content

Commit

Permalink
bug #646 Use validator on interactive mode (yceruto)
Browse files Browse the repository at this point in the history
This PR was merged into the master branch.

Discussion
----------

Use validator on interactive mode

Fixing invalid callable argument.

Commits
-------

3c4538d Use validator on interactive mode
  • Loading branch information
javiereguiluz committed Sep 7, 2017
2 parents fe8f4ab + 3c4538d commit e62210d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/DeleteUserCommand.php
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 e62210d

Please sign in to comment.