class UserViewer (View source)

UserViewer

Properties

protected User|null $user
protected EntityManager $entityManager
protected Settings $settingsBag
protected TranslatorInterface $translator
protected EmailManager $emailManager

Methods

__construct(EntityManager $entityManager, Settings $settingsBag, TranslatorInterface $translator, EmailManager $emailManager)

No description

bool
sendPasswordResetLink(UrlGeneratorInterface $urlGenerator, string $route = 'loginResetPage')

Send an email to reset user password.

string
getContactEmail()

No description

string
getSiteName()

No description

null|User
getUser()

No description

setUser(null|User $user)

No description

Details

__construct(EntityManager $entityManager, Settings $settingsBag, TranslatorInterface $translator, EmailManager $emailManager)

Parameters

EntityManager $entityManager
Settings $settingsBag
TranslatorInterface $translator
EmailManager $emailManager

Send an email to reset user password.

Parameters

UrlGeneratorInterface $urlGenerator
string $route

Return Value

bool

protected string getContactEmail()

Return Value

string

protected string getSiteName()

Return Value

string

null|User getUser()

Return Value

null|User

UserViewer setUser(null|User $user)

Parameters

null|User $user

Return Value

UserViewer