From 70842b4320ac4600b416b8458519804fad892baf Mon Sep 17 00:00:00 2001 From: Marco Date: Wed, 14 Sep 2016 16:42:00 +0200 Subject: [PATCH] Import class 'Delight\Cookie\Cookie' --- src/Auth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 664ae04..2335ed0 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -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']); }