namespace Friendica\Core\Session;
+use Friendica\Core\Config\Configuration;
+use Friendica\Model\User\Cookie;
+
/**
* Usable for backend processes (daemon/worker) and testing
*
*/
final class Memory extends Native
{
+ public function __construct(Configuration $config, Cookie $cookie)
+ {
+ $this->cookie = $cookie;
+ }
+
public function start()
{
// Backward compatibility until all Session variables are replaced
$this->dice = (new Dice())
->addRules(include __DIR__ . '/../../static/dependencies.config.php')
->addRule(Database::class, ['instanceOf' => StaticDatabase::class, 'shared' => true])
- ->addRule(ISession::class, ['instanceOf' => Session\Memory::class, 'shared' => true]);
+ ->addRule(ISession::class, ['instanceOf' => Session\Memory::class, 'shared' => true, 'call' => null]);
BaseObject::setDependencyInjection($this->dice);
/** @var Database $dba */