]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Session/CacheSessionHandler.php
Code cleanup
[friendica.git] / src / Core / Session / CacheSessionHandler.php
index 3ebdb99e167a499502940ae2c0f337489458dbac..c0a5896f4247a0f90330496df9c0f38ad305b9ca 100644 (file)
@@ -4,12 +4,10 @@ namespace Friendica\Core\Session;
 
 use Friendica\BaseObject;
 use Friendica\Core\Cache;
+use Friendica\Core\Logger;
 use Friendica\Core\Session;
 use SessionHandlerInterface;
 
-require_once 'boot.php';
-require_once 'include/text.php';
-
 /**
  * SessionHandler using Friendica Cache
  *
@@ -33,7 +31,7 @@ class CacheSessionHandler extends BaseObject implements SessionHandlerInterface
                        Session::$exists = true;
                        return $data;
                }
-               logger("no data for session $session_id", LOGGER_TRACE);
+               Logger::log("no data for session $session_id", Logger::TRACE);
                return '';
        }
 
@@ -47,6 +45,7 @@ class CacheSessionHandler extends BaseObject implements SessionHandlerInterface
         * @param  string $session_id   Session ID with format: [a-z0-9]{26}
         * @param  string $session_data Serialized session data
         * @return boolean Returns false if parameters are missing, true otherwise
+        * @throws \Exception
         */
        public function write($session_id, $session_data)
        {