namespace Friendica\Module\Profile;
-use Friendica\App;
+use Friendica\App\Arguments;
+use Friendica\App\BaseURL;
+use Friendica\App\Mode;
+use Friendica\App\Page;
+use Friendica\AppHelper;
use Friendica\Content\Conversation;
use Friendica\Content\Nav;
use Friendica\Content\Pager;
class Conversations extends BaseProfile
{
- /** @var App */
- private $app;
- /** @var App\Page */
+ /** @var AppHelper */
+ private $appHelper;
+ /** @var Page */
private $page;
/** @var DateTimeFormat */
private $dateTimeFormat;
private $conversation;
/** @var IManagePersonalConfigValues */
private $pConfig;
- /** @var App\Mode */
+ /** @var Mode */
private $mode;
- public function __construct(App\Mode $mode, IManagePersonalConfigValues $pConfig, Conversation $conversation, IHandleUserSessions $session, IManageConfigValues $config, DateTimeFormat $dateTimeFormat, App\Page $page, App $app, L10n $l10n, App\BaseURL $baseUrl, App\Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = [])
+ public function __construct(Mode $mode, IManagePersonalConfigValues $pConfig, Conversation $conversation, IHandleUserSessions $session, IManageConfigValues $config, DateTimeFormat $dateTimeFormat, Page $page, AppHelper $appHelper, L10n $l10n, BaseURL $baseUrl, Arguments $args, LoggerInterface $logger, Profiler $profiler, Response $response, array $server, array $parameters = [])
{
parent::__construct($l10n, $baseUrl, $args, $logger, $profiler, $response, $server, $parameters);
- $this->app = $app;
+ $this->appHelper = $appHelper;
$this->page = $page;
$this->dateTimeFormat = $dateTimeFormat;
$this->config = $config;
protected function content(array $request = []): string
{
- $profile = ProfileModel::load($this->app, $this->parameters['nickname'] ?? '');
+ $profile = ProfileModel::load($this->appHelper, $this->parameters['nickname'] ?? '');
if (empty($profile)) {
throw new HTTPException\NotFoundException($this->t('User not found.'));
}
}
if (!empty($datequery)) {
- $condition = DBA::mergeConditions($condition, ["`received` <= ?", DateTimeFormat::convert($datequery, 'UTC', $this->app->getTimeZone())]);
+ $condition = DBA::mergeConditions($condition, ["`received` <= ?", DateTimeFormat::convert($datequery, 'UTC', $this->appHelper->getTimeZone())]);
}
if (!empty($datequery2)) {
- $condition = DBA::mergeConditions($condition, ["`received` >= ?", DateTimeFormat::convert($datequery2, 'UTC', $this->app->getTimeZone())]);
+ $condition = DBA::mergeConditions($condition, ["`received` >= ?", DateTimeFormat::convert($datequery2, 'UTC', $this->appHelper->getTimeZone())]);
}
// Does the profile page belong to a group?