DoDomuDojade Documentation

AuthenticationService
in package

Read onlyYes

AuthenticationService used for user authentication

Table of Contents

Properties

$userRepository  : UserRepositoryInterface

Methods

__construct()  : mixed
getCurrentUser()  : User|null
Returns currently logged user
getCurrentUserId()  : int|null
Returns current users id
isUserLoggedIn()  : bool
Checks if there is a user logged in the session
logout()  : void
Logs out current user

Properties

Methods

getCurrentUserId()

Returns current users id

public getCurrentUserId() : int|null
Return values
int|null

isUserLoggedIn()

Checks if there is a user logged in the session

public isUserLoggedIn() : bool
Return values
bool

        
On this page

Search results