X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=3a8a9b6d2474eabea20815bed10269ba58cb5fd0;hb=79235b6db1c9badd6c9602d54ad0d550e4bec2fd;hp=b107e8c348b1d9eeadc668ee44281875223e55be;hpb=1a0b63659b0bbab0c09e579ef89f2e5eb25fbb3c;p=friendica.git diff --git a/src/DI.php b/src/DI.php index b107e8c348..3a8a9b6d24 100644 --- a/src/DI.php +++ b/src/DI.php @@ -22,6 +22,7 @@ namespace Friendica; use Dice\Dice; +use Friendica\Core\Session\Capability\IHandleSessions; use Friendica\Core\Session\Capability\IHandleUserSessions; use Friendica\Navigation\SystemMessages; use Psr\Log\LoggerInterface; @@ -212,10 +213,7 @@ abstract class DI return self::$dice->create(Core\Worker\Repository\Process::class); } - /** - * @return Core\Session\Capability\IHandleSessions - */ - public static function session() + public static function session(): IHandleSessions { return self::$dice->create(Core\Session\Capability\IHandleSessions::class); } @@ -381,6 +379,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Status::class); } + /** + * @return Factory\Api\Mastodon\StatusSource + */ + public static function mstdnStatusSource() + { + return self::$dice->create(Factory\Api\Mastodon\StatusSource::class); + } + /** * @return Factory\Api\Mastodon\ScheduledStatus */