Skip to content

Commit 5217f3a

Browse files
committed
uses nette/http 4
1 parent f06edbd commit 5217f3a

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
},
2121
"require-dev": {
2222
"nette/di": "^3.1",
23-
"nette/http": "^3.2",
23+
"nette/http": "^4.0",
2424
"nette/tester": "^2.6",
2525
"tracy/tracy": "^2.9",
2626
"phpstan/phpstan": "^2.1@stable",
@@ -30,7 +30,7 @@
3030
},
3131
"conflict": {
3232
"nette/di": "<3.0-stable",
33-
"nette/http": "<3.1.3"
33+
"nette/http": "<4"
3434
},
3535
"autoload": {
3636
"classmap": ["src/"],

src/Bridges/SecurityHttp/CookieStorage.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,8 @@ public function saveAuthentication(IIdentity $identity): void
4545
$this->cookieName,
4646
$uid,
4747
$this->cookieExpiration,
48-
null,
49-
$this->cookieDomain,
50-
null,
51-
true,
52-
$this->cookieSameSite,
48+
domain: $this->cookieDomain,
49+
sameSite: $this->cookieSameSite,
5350
);
5451
}
5552

@@ -59,8 +56,7 @@ public function clearAuthentication(bool $clearIdentity): void
5956
$this->uid = '';
6057
$this->response->deleteCookie(
6158
$this->cookieName,
62-
null,
63-
$this->cookieDomain,
59+
domain: $this->cookieDomain,
6460
);
6561
}
6662

0 commit comments

Comments
 (0)