From bad61a1bf37cf37cbc96594b58ac67155c6178b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=91cze=20Bence?= Date: Tue, 2 May 2023 11:16:20 +0200 Subject: [PATCH] pass Session object to Request --- src/Request/Request.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {