CookieFactory
- Full name:
\Qubus\Http\Cookies\Factory\CookieFactory
- This class implements:
\Qubus\Http\Cookies\Factory\HttpCookieFactory
Properties
config
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$config | \Qubus\Config\ConfigContainer |
make
Make a new cookie instance.
public make(string $name, ?string $value = null, ?int $maxAge = null): \Qubus\Http\Cookies\SetCookieCollection
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string | |
$value | ?string | |
$maxAge | ?int |
expire
Make an expired cookie instance.
Parameters:
Parameter | Type | Description |
---|---|---|
$name | string |
path
The cookie path. Default: '/'.
Throws:
domain
The cookie domain.
Throws:
secure
Throws:
samesite
Cookie samesite. Default: 'lax'.
Throws:
config
Automatically generated on 2025-10-13