Add SessionUsers class including tests
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
namespace Friendica;
|
||||
|
||||
use Dice\Dice;
|
||||
use Friendica\Core\Session\Capability\IHandleUserSessions;
|
||||
use Friendica\Navigation\SystemMessages;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
@@ -219,6 +220,11 @@ abstract class DI
|
||||
return self::$dice->create(Core\Session\Capability\IHandleSessions::class);
|
||||
}
|
||||
|
||||
public static function userSession(): IHandleUserSessions
|
||||
{
|
||||
return self::$dice->create(Core\Session\Capability\IHandleUserSessions::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Friendica\Core\Storage\Repository\StorageManager
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user