Skip to content

Commit 0941130

Browse files
committed
uses nette/http 4
1 parent feee11e commit 0941130

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": "^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: 3 additions & 7 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

0 commit comments

Comments
 (0)