1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-04 15:17:28 +02:00

Import class 'Delight\Cookie\Cookie'

This commit is contained in:
Marco
2016-09-14 16:42:00 +02:00
parent d527a82bfa
commit 70842b4320

View File

@@ -8,6 +8,8 @@
namespace Delight\Auth;
use Delight\Cookie\Cookie;
require __DIR__.'/Base64.php';
require __DIR__.'/Exceptions.php';
@@ -419,7 +421,7 @@ class Auth {
}
// set the cookie with the selector and token
$cookie = new \Delight\Cookie\Cookie(self::COOKIE_NAME_REMEMBER);
$cookie = new Cookie(self::COOKIE_NAME_REMEMBER);
$cookie->setValue($content);
$cookie->setExpiryTime($expires);
if (!empty($params['path'])) {
@@ -499,7 +501,7 @@ class Auth {
$params = $this->createCookieSettings();
// cause the session cookie to be deleted
$cookie = new \Delight\Cookie\Cookie(session_name());
$cookie = new Cookie(session_name());
if (!empty($params['path'])) {
$cookie->setPath($params['path']);
}