Table of Contents
Constants
-
DEFAULT_LOGIN_PATH
= "/auth/login"
-
DEFAULT_REDIRECT
= "/"
-
HEADER_LOCATION
= "Location"
-
REDIRECT
= "battis.userSession.manager.redirect"
-
USER
= "battis.userSession.manager.user"
Properties
-
$defaultRedirect
: mixed
-
$loginPath
: mixed
-
$session
: mixed
Methods
-
__construct()
: mixed
-
endUserSession()
: void
-
getCurrentUser()
: UserEntityInterface|null
-
sessionIsActive()
: bool
-
startUserLogin()
: ResponseInterface
-
startUserSession()
: ResponseInterface
DEFAULT_LOGIN_PATH
public
mixed
DEFAULT_LOGIN_PATH
= "/auth/login"
DEFAULT_REDIRECT
public
mixed
DEFAULT_REDIRECT
= "/"
private
mixed
HEADER_LOCATION
= "Location"
REDIRECT
private
mixed
REDIRECT
= "battis.userSession.manager.redirect"
USER
private
mixed
USER
= "battis.userSession.manager.user"
$defaultRedirect
private
mixed
$defaultRedirect
$loginPath
private
mixed
$loginPath
$session
private
mixed
$session
__construct()
public
__construct(Helper $session[, string $loginPath = self::DEFAULT_LOGIN_PATH ][, string $defaultRedirect = self::DEFAULT_REDIRECT ]) : mixed
Parameters
-
$session
: Helper
-
-
$loginPath
: string
= self::DEFAULT_LOGIN_PATH
-
-
$defaultRedirect
: string
= self::DEFAULT_REDIRECT
-
endUserSession()
public
endUserSession() : void
getCurrentUser()
public
getCurrentUser() : UserEntityInterface|null
sessionIsActive()
public
sessionIsActive() : bool
startUserLogin()
public
startUserLogin(RequestInterface $request) : ResponseInterface
Parameters
-
$request
: RequestInterface
-
Return values
ResponseInterface
startUserSession()
public
startUserSession([UserEntityInterface $user = null ]) : ResponseInterface
Parameters
-
$user
: UserEntityInterface
= null
-
Return values
ResponseInterface