Skip to content

Commit 2f05be6

Browse files
committed
uses nette/http 4
1 parent a82d18f commit 2f05be6

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
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": "^1.0",
2727
"mockery/mockery": "^1.5"
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: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ public function saveAuthentication(IIdentity $identity): void
4949
$this->cookieName,
5050
$uid,
5151
$this->cookieExpiration,
52-
null,
53-
$this->cookieDomain,
54-
null,
55-
true,
56-
$this->cookieSameSite
52+
domain: $this->cookieDomain,
53+
sameSite: $this->cookieSameSite,
5754
);
5855
}
5956

@@ -63,8 +60,7 @@ public function clearAuthentication(bool $clearIdentity): void
6360
$this->uid = '';
6461
$this->response->deleteCookie(
6562
$this->cookieName,
66-
null,
67-
$this->cookieDomain
63+
domain: $this->cookieDomain,
6864
);
6965
}
7066

@@ -91,7 +87,7 @@ public function setExpiration(?string $expire, bool $clearIdentity): void
9187
public function setCookieParameters(
9288
?string $name = null,
9389
?string $domain = null,
94-
?string $sameSite = null
90+
?string $sameSite = null,
9591
) {
9692
$this->cookieName = $name ?? $this->cookieName;
9793
$this->cookieDomain = $domain ?? $this->cookieDomain;

0 commit comments

Comments
 (0)