diff --git a/src/Request/Request.php b/src/Request/Request.php index 535f4f0..6c9b1aa 100644 --- a/src/Request/Request.php +++ b/src/Request/Request.php @@ -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) {