QueueingFactory
interface QueueingFactory implements Factory
Methods
Create a new cookie instance.
Create a cookie that lasts "forever" (400 days).
Expire the given cookie.
Determine if a cookie exists in the current request.
Get a cookie value from the current request.
Queue a cookie to send with the next response.
Queue a cookie to expire with the next response.
Determine if a cookie has been queued.
Remove a cookie from the queue.
Get the cookies which have been queued for the next request.
Details
in
Factory at line 15
Cookie
make(UnitEnum|string $name, string|null $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.
in
Factory at line 20
Cookie
forever(UnitEnum|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" (400 days).
in
Factory at line 25
Cookie
forget(UnitEnum|string $name, string|null $path = null, string|null $domain = null)
Expire the given cookie.
at line 15
bool
has(UnitEnum|string $key)
Determine if a cookie exists in the current request.
at line 20
string|array|null
get(UnitEnum|string $key, string|array|null $default = null)
Get a cookie value from the current request.
at line 25
void
queue(mixed ...$parameters)
Queue a cookie to send with the next response.
at line 30
void
expire(UnitEnum|string $name, string|null $path = null, string|null $domain = null)
Queue a cookie to expire with the next response.
at line 35
bool
hasQueued(UnitEnum|string $key, string|null $path = null)
Determine if a cookie has been queued.
at line 40
void
unqueue(UnitEnum|string $name, string|null $path = null)
Remove a cookie from the queue.
at line 47
array
getQueuedCookies()
Get the cookies which have been queued for the next request.