FOS\UserBundle\Model\UserInterface::getPlainPassword PHP Method

getPlainPassword() public method

public getPlainPassword ( )
    function getPlainPassword();

Usage Example

Beispiel #1
0
 /**
  * {@inheritdoc}
  */
 public function sendCreationEmailMessage(UserInterface $user)
 {
     $template = $this->parameters['creation.template'];
     $url = $this->router->generate('fos_user_registration_confirm', array('token' => $user->getConfirmationToken()), UrlGeneratorInterface::ABSOLUTE_URL);
     $rendered = $this->templating->render($template, array('user' => $user, 'password' => $user->getPlainPassword(), 'confirmationUrl' => $url));
     $this->sendEmailMessage($rendered, $this->parameters['from_email']['creation'], $user->getEmail());
 }
All Usage Examples Of FOS\UserBundle\Model\UserInterface::getPlainPassword