interface QueueingFactory implements Factory (View source)

Methods

Cookie
make(string $name, string $value, int $minutes = 0, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)

Create a new cookie instance.

from  Factory
Cookie
forever(string $name, string $value, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)

Create a cookie that lasts "forever" (five years).

from  Factory
Cookie
forget(string $name, string|null $path = null, string|null $domain = null)

Expire the given cookie.

from  Factory
void
queue(mixed ...$parameters)

Queue a cookie to send with the next response.

void
unqueue(string $name, string|null $path = null)

Remove a cookie from the queue.

array
getQueuedCookies()

Get the cookies which have been queued for the next request.

Details

Cookie make(string $name, string $value, int $minutes = 0, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)

Create a new cookie instance.

Parameters

string $name
string $value
int $minutes
string|null $path
string|null $domain
bool|null $secure
bool $httpOnly
bool $raw
string|null $sameSite

Return Value

Cookie

Cookie forever(string $name, string $value, string|null $path = null, string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = null)

Create a cookie that lasts "forever" (five years).

Parameters

string $name
string $value
string|null $path
string|null $domain
bool|null $secure
bool $httpOnly
bool $raw
string|null $sameSite

Return Value

Cookie

Cookie forget(string $name, string|null $path = null, string|null $domain = null)

Expire the given cookie.

Parameters

string $name
string|null $path
string|null $domain

Return Value

Cookie

void queue(mixed ...$parameters)

Queue a cookie to send with the next response.

Parameters

mixed ...$parameters

Return Value

void

void unqueue(string $name, string|null $path = null)

Remove a cookie from the queue.

Parameters

string $name
string|null $path

Return Value

void

array getQueuedCookies()

Get the cookies which have been queued for the next request.

Return Value

array