Commit 1c2c1d8c authored by Tino Goratsch's avatar Tino Goratsch

fix the usage of deprecated code after the symfony components update

parent f512e7cb
......@@ -153,7 +153,7 @@ class SessionHandler extends AbstractSessionHandler
$this->secureSession();
if ($this->request->getCookies()->has(self::SESSION_NAME)) {
$cookie = new Cookie(
$cookie = Cookie::create(
self::SESSION_NAME,
'',
(new \DateTime())->modify('-3600 seconds'),
......
......@@ -127,7 +127,7 @@ class AuthenticationModel implements AuthenticationModelInterface
$expiry = static::REMEMBER_ME_COOKIE_LIFETIME;
}
return new Cookie(
return Cookie::create(
self::AUTH_NAME,
$userId . '|' . $token,
(new \DateTime())->modify('+' . $expiry . ' seconds'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment