Example #1
0
 public function __construct()
 {
     parent::__construct();
     $username = '******' . $this->generateRandomLetters();
     $this->setUsername($username);
     $this->setEmail($username . '@' . $this->generateRandomLetters() . '.bot');
     $this->setPlainPassword($this->generateRandomLetters());
 }
Example #2
0
 /**
  * @param User $user
  */
 public function dropWaitState(User $user)
 {
     $user->dropWaitState();
     $this->getEntityManager()->flush($user);
 }
Example #3
0
 /**
  * @param User $user
  */
 public function logRegistration(User $user)
 {
     $this->info(sprintf('[#%d] логин: %s, имя: %s, email: %s', $user->getId(), $user->getUsername(), $user->getName(), $user->getEmail()));
 }