feature/implement-separate-remember-me #15
@ -17,7 +17,7 @@ class Request implements IRequest
|
|||||||
|
|
||||||
private array $headers;
|
private array $headers;
|
||||||
|
|
||||||
private Session $session;
|
private ISession $session;
|
||||||
|
|
||||||
private ?IUser $user = null;
|
private ?IUser $user = null;
|
||||||
|
|
||||||
@ -26,14 +26,14 @@ class Request implements IRequest
|
|||||||
array $get,
|
array $get,
|
||||||
array $post,
|
array $post,
|
||||||
array $headers,
|
array $headers,
|
||||||
array &$session,
|
ISession $session,
|
||||||
IUserRepository $userRepository)
|
IUserRepository $userRepository)
|
||||||
{
|
{
|
||||||
$this->base = $base;
|
$this->base = $base;
|
||||||
$this->get = $get;
|
$this->get = $get;
|
||||||
$this->post = $post;
|
$this->post = $post;
|
||||||
$this->headers = $headers;
|
$this->headers = $headers;
|
||||||
$this->session = new Session($session);
|
$this->session = $session;
|
||||||
|
|
||||||
$userId = $this->session->get('userId');
|
$userId = $this->session->get('userId');
|
||||||
if ($userId !== null) {
|
if ($userId !== null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user