UserRegistrationService
in package
Table of Contents
Properties
- $entityManager : EntityManagerInterface
- $mailer : MailerService
- $passwordHasher : UserPasswordHasherInterface
- $urlGenerator : UrlGeneratorInterface
Methods
- __construct() : mixed
- register() : User
- Register a new user
Properties
$entityManager
private
EntityManagerInterface
$entityManager
$mailer
private
MailerService
$mailer
$passwordHasher
private
UserPasswordHasherInterface
$passwordHasher
$urlGenerator
private
UrlGeneratorInterface
$urlGenerator
Methods
__construct()
public
__construct(EntityManagerInterface $entityManager, UserPasswordHasherInterface $passwordHasher, MailerService $mailer, UrlGeneratorInterface $urlGenerator) : mixed
Parameters
- $entityManager : EntityManagerInterface
- $passwordHasher : UserPasswordHasherInterface
- $mailer : MailerService
- $urlGenerator : UrlGeneratorInterface
register()
Register a new user
public
register(User $user, string $plainPassword[, bool $needEmailVerification = true ]) : User
Parameters
- $user : User
- $plainPassword : string
- $needEmailVerification : bool = true