pass Session object to Request
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit
Some checks failed
soko-web/pipeline/pr-master There was a failure building this commit
This commit is contained in:
parent
9ade08d8bd
commit
bad61a1bf3
@ -26,14 +26,14 @@ class Request implements IRequest
|
||||
array $get,
|
||||
array $post,
|
||||
array $headers,
|
||||
array &$session,
|
||||
Session $session,
|
||||
IUserRepository $userRepository)
|
||||
{
|
||||
$this->base = $base;
|
||||
$this->get = $get;
|
||||
$this->post = $post;
|
||||
$this->headers = $headers;
|
||||
$this->session = new Session($session);
|
||||
$this->session = $session;
|
||||
|
||||
$userId = $this->session->get('userId');
|
||||
if ($userId !== null) {
|
||||
|
Loading…
Reference in New Issue
Block a user