Add phpdoc

This commit is contained in:
Philipp Holzer 2019-12-10 00:50:05 +01:00
parent 555513e4b4
commit cad7e534a4
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 9 additions and 6 deletions

View file

@ -2,8 +2,9 @@
namespace Friendica\Core\Session; namespace Friendica\Core\Session;
use Friendica\BaseObject; /**
* Contains all global supported Session methods
*/
interface ISession interface ISession
{ {
/** /**

View file

@ -3,8 +3,6 @@
namespace Friendica\Core\Session; namespace Friendica\Core\Session;
/** /**
* Native Session functions for internal Session usage.
*
* Usable for backend processes (daemon/worker) and testing * Usable for backend processes (daemon/worker) and testing
*/ */
final class MemorySession implements ISession final class MemorySession implements ISession

View file

@ -6,6 +6,9 @@ use Friendica\Core\Config\Configuration;
use Friendica\App; use Friendica\App;
use Friendica\Model\User\Cookie; use Friendica\Model\User\Cookie;
/**
* The native Session class which uses the PHP internal Session function
*/
class NativeSession implements ISession class NativeSession implements ISession
{ {
/** @var Cookie */ /** @var Cookie */
@ -88,7 +91,5 @@ class NativeSession implements ISession
{ {
$this->cookie->clear(); $this->cookie->clear();
$_SESSION = []; $_SESSION = [];
session_unset();
session_destroy();
} }
} }

View file

@ -18,6 +18,9 @@ use Friendica\Model\User\Cookie;
use Friendica\Util\Profiler; use Friendica\Util\Profiler;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/**
* Factory for creating a valid Session for this run
*/
class SessionFactory class SessionFactory
{ {
/** @var string The plain, PHP internal session management */ /** @var string The plain, PHP internal session management */