Add phpdoc
This commit is contained in:
parent
555513e4b4
commit
cad7e534a4
|
@ -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
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue