Updated session
This commit is contained in:
parent
dd2c6efbc9
commit
228b2ec506
1 changed files with 8 additions and 1 deletions
|
@ -9,6 +9,13 @@ class Session extends Model
|
|||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->addRule('roles', [
|
||||
'type' => 'string',
|
||||
'description' => 'User list of roles',
|
||||
'default' => [],
|
||||
'example' => [],
|
||||
'array' => true,
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -28,6 +35,6 @@ class Session extends Model
|
|||
*/
|
||||
public function getType():string
|
||||
{
|
||||
return Response::MODEL_LOCALE;
|
||||
return Response::MODEL_SESSION;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue