Properties

$config

$config : array

Type

array

$secret

$secret : string

Type

string

$cipher

$cipher : string

Type

string

$domain

$domain : string

Type

string

$path

$path : string

Type

string

$expire

$expire : int

Type

int

$secure

$secure : bool

Type

bool

$httponly

$httponly : bool

Type

bool

$samesite

$samesite : string

Type

string

$encrypt

$encrypt : bool

Type

bool

$queuedCookies

$queuedCookies : array

Type

array

Methods

__construct()

__construct(?string  $configPath = null) : mixed

Parameters

?string $configPath

Returns

mixed —

queueCookie()

queueCookie(string  $name, string  $value, ?int  $expire = null) : void

Parameters

string $name
string $value
?int $expire

queueForgetCookie()

queueForgetCookie(string  $name) : void

Parameters

string $name

sendQueuedCookies()

sendQueuedCookies(?\Symfony\Component\HttpFoundation\Response  $response = null) : void

Parameters

?\Symfony\Component\HttpFoundation\Response $response

setResponseCookie()

setResponseCookie(\Symfony\Component\HttpFoundation\Response  $response, string  $name, string  $value, ?int  $expire = null) : void

Parameters

\Symfony\Component\HttpFoundation\Response $response
string $name
string $value
?int $expire

forgetResponseCookie()

forgetResponseCookie(\Symfony\Component\HttpFoundation\Response  $response, string  $name) : void

Parameters

\Symfony\Component\HttpFoundation\Response $response
string $name

get()

get(\Symfony\Component\HttpFoundation\Request  $request, string  $name) : ?string

Parameters

\Symfony\Component\HttpFoundation\Request $request
string $name

Returns

?string —

encodePayload()

encodePayload(string  $value) : string

Parameters

string $value

Returns

string —

decodePayload()

decodePayload(string  $payload) : ?string

Parameters

string $payload

Returns

?string —

encryptValue()

encryptValue(string  $value) : string

Parameters

string $value

Returns

string —

decryptValue()

decryptValue(string  $encoded) : string

Parameters

string $encoded

Returns

string —

sign()

sign(string  $data) : string

Parameters

string $data

Returns

string —

verify()

verify(string  $data, string  $sig) : bool

Parameters

string $data
string $sig

Returns

bool —

base64url_encode()

base64url_encode(string  $data) : string

Parameters

string $data

Returns

string —

base64url_decode()

base64url_decode(string  $data) : string

Parameters

string $data

Returns

string —