mirror of
https://github.com/friendica/friendica
synced 2024-12-24 02:40:16 +00:00
Add phpdoc
This commit is contained in:
parent
555513e4b4
commit
cad7e534a4
4 changed files with 9 additions and 6 deletions
|
@ -2,8 +2,9 @@
|
|||
|
||||
namespace Friendica\Core\Session;
|
||||
|
||||
use Friendica\BaseObject;
|
||||
|
||||
/**
|
||||
* Contains all global supported Session methods
|
||||
*/
|
||||
interface ISession
|
||||
{
|
||||
/**
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
namespace Friendica\Core\Session;
|
||||
|
||||
/**
|
||||
* Native Session functions for internal Session usage.
|
||||
*
|
||||
* Usable for backend processes (daemon/worker) and testing
|
||||
*/
|
||||
final class MemorySession implements ISession
|
||||
|
|
|
@ -6,6 +6,9 @@ use Friendica\Core\Config\Configuration;
|
|||
use Friendica\App;
|
||||
use Friendica\Model\User\Cookie;
|
||||
|
||||
/**
|
||||
* The native Session class which uses the PHP internal Session function
|
||||
*/
|
||||
class NativeSession implements ISession
|
||||
{
|
||||
/** @var Cookie */
|
||||
|
@ -88,7 +91,5 @@ class NativeSession implements ISession
|
|||
{
|
||||
$this->cookie->clear();
|
||||
$_SESSION = [];
|
||||
session_unset();
|
||||
session_destroy();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,6 +18,9 @@ use Friendica\Model\User\Cookie;
|
|||
use Friendica\Util\Profiler;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
/**
|
||||
* Factory for creating a valid Session for this run
|
||||
*/
|
||||
class SessionFactory
|
||||
{
|
||||
/** @var string The plain, PHP internal session management */
|
||||
|
|
Loading…
Reference in a new issue