class CookieService (View source)

Constants

COOKIE_NAME

The name of the cookie to be used to remember the currently logged in user.

Properties

protected CookieJar $cookieJar
protected Repository $config

Methods

__construct(CookieJar $cookieJar, Repository $config)

Initialize the instance.

getCookie()

Get the authentication data corrently contained in the cookie jar.

setCookie(CookieValue $value = null)

Set (or delete) the authentication cookie.

deleteCookie()

Delete the authentication cookie.

string
serializeCookieValue(CookieValue $value)

No description

unserializeCookieValue(string|mixed $rawValue)

No description

Details

__construct(CookieJar $cookieJar, Repository $config)

Initialize the instance.

Parameters

CookieJar $cookieJar
Repository $config

CookieValue|null getCookie()

Get the authentication data corrently contained in the cookie jar.

Return Value

CookieValue|null

setCookie(CookieValue $value = null)

Set (or delete) the authentication cookie.

Parameters

CookieValue $value

deleteCookie()

Delete the authentication cookie.

protected string serializeCookieValue(CookieValue $value)

No description

Parameters

CookieValue $value

Return Value

string

protected CookieValue|null unserializeCookieValue(string|mixed $rawValue)

No description

Parameters

string|mixed $rawValue

Return Value

CookieValue|null