Skip to content

Commit 415e032

Browse files
committed
uses nette/http 4
1 parent 6d9b17e commit 415e032

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@
2020
},
2121
"require-dev": {
2222
"nette/di": "^3.1",
23-
"nette/http": "^3.2",
23+
"nette/http": "^4.0",
2424
"nette/tester": "^2.5",
2525
"tracy/tracy": "^2.9",
2626
"phpstan/phpstan-nette": "^2.0@stable",
2727
"mockery/mockery": "^1.6@stable"
2828
},
2929
"conflict": {
3030
"nette/di": "<3.0-stable",
31-
"nette/http": "<3.1.3"
31+
"nette/http": "<4"
3232
},
3333
"autoload": {
3434
"classmap": ["src/"],

src/Bridges/SecurityHttp/CookieStorage.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,8 @@ public function saveAuthentication(IIdentity $identity): void
5050
$this->cookieName,
5151
$uid,
5252
$this->cookieExpiration,
53-
null,
54-
$this->cookieDomain,
55-
null,
56-
true,
57-
$this->cookieSameSite,
53+
domain: $this->cookieDomain,
54+
sameSite: $this->cookieSameSite,
5855
);
5956
}
6057

@@ -64,8 +61,7 @@ public function clearAuthentication(bool $clearIdentity): void
6461
$this->uid = '';
6562
$this->response->deleteCookie(
6663
$this->cookieName,
67-
null,
68-
$this->cookieDomain,
64+
domain: $this->cookieDomain,
6965
);
7066
}
7167

0 commit comments

Comments
 (0)