|
@@ -28,6 +28,7 @@ class Model extends ParentModel
|
|
public function __construct(array $options, Container $container)
|
|
public function __construct(array $options, Container $container)
|
|
{
|
|
{
|
|
parent::__construct($container);
|
|
parent::__construct($container);
|
|
|
|
+
|
|
$options = $options + [
|
|
$options = $options + [
|
|
'prefix' => '',
|
|
'prefix' => '',
|
|
'domain' => '',
|
|
'domain' => '',
|
|
@@ -35,9 +36,8 @@ class Model extends ParentModel
|
|
'secure' => false,
|
|
'secure' => false,
|
|
'samesite' => 'Lax',
|
|
'samesite' => 'Lax',
|
|
'time' => 31536000,
|
|
'time' => 31536000,
|
|
- 'key1' => 'key1',
|
|
|
|
- 'key2' => 'key2',
|
|
|
|
];
|
|
];
|
|
|
|
+
|
|
$this->setAttrs($options);
|
|
$this->setAttrs($options);
|
|
$this->init();
|
|
$this->init();
|
|
$this->noSet = true;
|
|
$this->noSet = true;
|