Skip to content

Reverted #467 to make PHP callbacks work again #471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/AppBundle/Command/AddUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
}
}

private function passwordValidator($plainPassword)
/**
* @internal
*/
public function passwordValidator($plainPassword)
{
if (empty($plainPassword)) {
throw new \Exception('The password can not be empty.');
Expand All @@ -235,7 +238,10 @@ private function passwordValidator($plainPassword)
return $plainPassword;
}

private function emailValidator($email)
/**
* @internal
*/
public function emailValidator($email)
{
if (empty($email)) {
throw new \Exception('The email can not be empty.');
Expand All @@ -248,7 +254,10 @@ private function emailValidator($email)
return $email;
}

private function fullNameValidator($fullName)
/**
* @internal
*/
public function fullNameValidator($fullName)
{
if (empty($fullName)) {
throw new \Exception('The full name can not be empty.');
Expand Down