예제 #1
0
파일: Robot.php 프로젝트: Nosolok/Kingdom
 public function __construct()
 {
     parent::__construct();
     $username = '******' . $this->generateRandomLetters();
     $this->setUsername($username);
     $this->setEmail($username . '@' . $this->generateRandomLetters() . '.bot');
     $this->setPlainPassword($this->generateRandomLetters());
 }
예제 #2
0
 /**
  * @param User $user
  */
 public function dropWaitState(User $user)
 {
     $user->dropWaitState();
     $this->getEntityManager()->flush($user);
 }
예제 #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()));
 }