]> git.mxchange.org Git - friendica.git/blob - src/Core/Session/Memory.php
Merge pull request #7995 from annando/probe-hubzilla
[friendica.git] / src / Core / Session / Memory.php
1 <?php
2
3 namespace Friendica\Core\Session;
4
5 use Friendica\Model\User\Cookie;
6
7 /**
8  * Usable for backend processes (daemon/worker) and testing
9  *
10  * @todo after replacing the last direct $_SESSION call, use a internal array instead of the global variable
11  */
12 final class Memory extends AbstractSession implements ISession
13 {
14         public function __construct(Cookie $cookie)
15         {
16                 parent::__construct($cookie);
17
18                 // Backward compatibility until all Session variables are replaced
19                 // with the Session class
20                 $_SESSION = [];
21         }
22 }