Refactor Session Handling (make it more simple & handler are now handler again)

This commit is contained in:
nupplaPhil 2019-12-11 20:30:31 +01:00
parent 02c40ad1cb
commit 1408908c84
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
11 changed files with 143 additions and 140 deletions

View file

@ -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;
}
}