From: Philipp Date: Sun, 23 Oct 2022 06:18:01 +0000 (+0200) Subject: Fix missing/wrong IHandleUserSessions usages X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b4b9f426db096ba62ce95bbb154d8c3e2515d019;p=friendica.git Fix missing/wrong IHandleUserSessions usages --- diff --git a/src/Module/Notifications/Introductions.php b/src/Module/Notifications/Introductions.php index 5b6ccc7452..2bd03e3071 100644 --- a/src/Module/Notifications/Introductions.php +++ b/src/Module/Notifications/Introductions.php @@ -30,6 +30,7 @@ use Friendica\Content\Text\BBCode; use Friendica\Core\L10n; use Friendica\Core\Protocol; use Friendica\Core\Renderer; +use Friendica\Core\Session\Capability\IHandleUserSessions; use Friendica\DI; use Friendica\Model\User; use Friendica\Module\BaseNotifications; @@ -49,9 +50,9 @@ class Introductions extends BaseNotifications /** @var Mode */ protected $mode; - public function __construct(L10n $l10n, App\BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, Mode $mode, IntroductionFactory $notificationIntro, array $server, array $parameters = []) + public function __construct(L10n $l10n, App\BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, Mode $mode, IntroductionFactory $notificationIntro, IHandleUserSessions $userSession, array $server, array $parameters = []) { - parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); + parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $userSession, $server, $parameters); $this->notificationIntro = $notificationIntro; $this->mode = $mode; diff --git a/src/Module/Notifications/Notifications.php b/src/Module/Notifications/Notifications.php index 90ea9c28ba..34d3cc698c 100644 --- a/src/Module/Notifications/Notifications.php +++ b/src/Module/Notifications/Notifications.php @@ -26,6 +26,7 @@ use Friendica\App\Arguments; use Friendica\Content\Nav; use Friendica\Core\L10n; use Friendica\Core\Renderer; +use Friendica\Core\Session\Capability\IHandleUserSessions; use Friendica\Module\BaseNotifications; use Friendica\Module\Response; use Friendica\Navigation\Notifications\ValueObject\FormattedNotify; @@ -44,9 +45,9 @@ class Notifications extends BaseNotifications /** @var \Friendica\Navigation\Notifications\Factory\FormattedNotify */ protected $formattedNotifyFactory; - public function __construct(L10n $l10n, App\BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, \Friendica\Navigation\Notifications\Factory\FormattedNotify $formattedNotifyFactory, array $server, array $parameters = []) + public function __construct(L10n $l10n, App\BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, \Friendica\Navigation\Notifications\Factory\FormattedNotify $formattedNotifyFactory, IHandleUserSessions $userSession, array $server, array $parameters = []) { - parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters); + parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $userSession, $server, $parameters); $this->formattedNotifyFactory = $formattedNotifyFactory; } diff --git a/src/Module/ParseUrl.php b/src/Module/ParseUrl.php index fc096bbd58..8353cdf6d6 100644 --- a/src/Module/ParseUrl.php +++ b/src/Module/ParseUrl.php @@ -38,7 +38,7 @@ class ParseUrl extends BaseModule /** @var IHandleUserSessions */ protected $userSession; - public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, Session\Capability\IHandleUserSessions $userSession, $server, array $parameters = []) + public function __construct(L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, IHandleUserSessions $userSession, $server, array $parameters = []) { parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);