Documentation

Manager
in package

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

Constants

DEFAULT_LOGIN_PATH

public mixed DEFAULT_LOGIN_PATH = "/auth/login"

DEFAULT_REDIRECT

public mixed DEFAULT_REDIRECT = "/"

HEADER_LOCATION

private mixed HEADER_LOCATION = "Location"

REDIRECT

private mixed REDIRECT = "battis.userSession.manager.redirect"

USER

private mixed USER = "battis.userSession.manager.user"

Properties

$defaultRedirect

private mixed $defaultRedirect

Methods

__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

sessionIsActive()

public sessionIsActive() : bool
Return values
bool

startUserLogin()

public startUserLogin(RequestInterface $request) : ResponseInterface
Parameters
$request : RequestInterface
Return values
ResponseInterface

        
On this page

Search results