mirror of
https://github.com/friendica/friendica
synced 2025-05-08 07:44:10 +02:00
Refactor Session Handling (make it more simple & handler are now handler again)
This commit is contained in:
parent
02c40ad1cb
commit
1408908c84
11 changed files with 143 additions and 140 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Friendica\Core\Session;
|
||||
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Model\User\Cookie;
|
||||
|
||||
/**
|
||||
|
@ -10,19 +9,14 @@ use Friendica\Model\User\Cookie;
|
|||
*
|
||||
* @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable
|
||||
*/
|
||||
final class Memory extends Native
|
||||
final class Memory extends AbstractSession implements ISession
|
||||
{
|
||||
public function __construct(Configuration $config, Cookie $cookie)
|
||||
public function __construct(Cookie $cookie)
|
||||
{
|
||||
$this->cookie = $cookie;
|
||||
}
|
||||
parent::__construct($cookie);
|
||||
|
||||
public function start()
|
||||
{
|
||||
// Backward compatibility until all Session variables are replaced
|
||||
// with the Session class
|
||||
$_SESSION = [];
|
||||
$this->clear();
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue