Skip to content

Commit 5f31a37

Browse files
committed
Reverted #467 to make PHP callbacks work again
1 parent e8a803a commit 5f31a37

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/AppBundle/Command/AddUserCommand.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,10 @@ protected function execute(InputInterface $input, OutputInterface $output)
222222
}
223223
}
224224

225-
private function passwordValidator($plainPassword)
225+
/**
226+
* @internal
227+
*/
228+
public function passwordValidator($plainPassword)
226229
{
227230
if (empty($plainPassword)) {
228231
throw new \Exception('The password can not be empty.');
@@ -235,7 +238,10 @@ private function passwordValidator($plainPassword)
235238
return $plainPassword;
236239
}
237240

238-
private function emailValidator($email)
241+
/**
242+
* @internal
243+
*/
244+
public function emailValidator($email)
239245
{
240246
if (empty($email)) {
241247
throw new \Exception('The email can not be empty.');
@@ -248,7 +254,10 @@ private function emailValidator($email)
248254
return $email;
249255
}
250256

251-
private function fullNameValidator($fullName)
257+
/**
258+
* @internal
259+
*/
260+
public function fullNameValidator($fullName)
252261
{
253262
if (empty($fullName)) {
254263
throw new \Exception('The full name can not be empty.');

0 commit comments

Comments
 (0)