BConnect Business - Reference PHP

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

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
Tags
throws
TransportExceptionInterface
Return values
User
On this page

Search results