mirror of
https://github.com/friendica/friendica
synced 2025-04-27 19:50:12 +00:00
Renaming class
This commit is contained in:
parent
26bd956912
commit
ce2610000b
5 changed files with 16 additions and 13 deletions
|
@ -14,7 +14,7 @@ use SessionHandlerInterface;
|
|||
*
|
||||
* @author Hypolite Petovan <hypolite@mrpetovan.com>
|
||||
*/
|
||||
final class CacheSession extends NativeSession implements SessionHandlerInterface
|
||||
final class Cache extends Native implements SessionHandlerInterface
|
||||
{
|
||||
/** @var ICache */
|
||||
private $cache;
|
|
@ -14,7 +14,7 @@ use SessionHandlerInterface;
|
|||
*
|
||||
* @author Hypolite Petovan <hypolite@mrpetovan.com>
|
||||
*/
|
||||
final class DatabaseSession extends NativeSession implements SessionHandlerInterface
|
||||
final class Database extends Native implements SessionHandlerInterface
|
||||
{
|
||||
/** @var Database */
|
||||
private $dba;
|
|
@ -5,12 +5,15 @@ namespace Friendica\Core\Session;
|
|||
/**
|
||||
* Usable for backend processes (daemon/worker) and testing
|
||||
*/
|
||||
final class MemorySession implements ISession
|
||||
final class Memory implements ISession
|
||||
{
|
||||
private $data = [];
|
||||
|
||||
public function start()
|
||||
{
|
||||
// Backward compatibility until all Session variables are replaced
|
||||
// with the Session class
|
||||
$_SESSION = [];
|
||||
$this->clear();
|
||||
return $this;
|
||||
}
|
|
@ -9,7 +9,7 @@ use Friendica\Model\User\Cookie;
|
|||
/**
|
||||
* The native Session class which uses the PHP internal Session function
|
||||
*/
|
||||
class NativeSession implements ISession
|
||||
class Native implements ISession
|
||||
{
|
||||
/** @var Cookie */
|
||||
protected $cookie;
|
Loading…
Add table
Add a link
Reference in a new issue