Remove unused dependencies

This commit is contained in:
Art4 2024-11-08 09:44:01 +00:00
parent 48b2cff53d
commit 6fd74bccb0

View file

@ -25,8 +25,6 @@ use Friendica\Core\Config\Capability\IManageConfigValues;
use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues; use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues;
use Friendica\Core\L10n; use Friendica\Core\L10n;
use Friendica\Core\System; use Friendica\Core\System;
use Friendica\Core\Theme;
use Friendica\Database\Database;
use Friendica\Module\Special\HTTPException as ModuleHTTPException; use Friendica\Module\Special\HTTPException as ModuleHTTPException;
use Friendica\Network\HTTPException; use Friendica\Network\HTTPException;
use Friendica\Protocol\ATProtocol\DID; use Friendica\Protocol\ATProtocol\DID;
@ -35,7 +33,6 @@ use Friendica\Util\DateTimeFormat;
use Friendica\Util\HTTPInputData; use Friendica\Util\HTTPInputData;
use Friendica\Util\HTTPSignature; use Friendica\Util\HTTPSignature;
use Friendica\Util\Profiler; use Friendica\Util\Profiler;
use Friendica\Util\Strings;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
/** /**
@ -92,11 +89,6 @@ class App
*/ */
private $profiler; private $profiler;
/**
* @var Database The Friendica database connection
*/
private $database;
/** /**
* @var L10n The translator * @var L10n The translator
*/ */
@ -107,11 +99,6 @@ class App
*/ */
private $args; private $args;
/**
* @var IManagePersonalConfigValues
*/
private $pConfig;
/** /**
* @var IHandleUserSessions * @var IHandleUserSessions
*/ */
@ -269,7 +256,6 @@ class App
} }
/** /**
* @param Database $database The Friendica Database
* @param IManageConfigValues $config The Configuration * @param IManageConfigValues $config The Configuration
* @param Mode $mode The mode of this Friendica app * @param Mode $mode The mode of this Friendica app
* @param BaseURL $baseURL The full base URL of this Friendica app * @param BaseURL $baseURL The full base URL of this Friendica app
@ -277,7 +263,6 @@ class App
* @param Profiler $profiler The profiler of this application * @param Profiler $profiler The profiler of this application
* @param L10n $l10n The translator instance * @param L10n $l10n The translator instance
* @param App\Arguments $args The Friendica Arguments of the call * @param App\Arguments $args The Friendica Arguments of the call
* @param IManagePersonalConfigValues $pConfig Personal configuration
* @param IHandleUserSessions $session The (User)Session handler * @param IHandleUserSessions $session The (User)Session handler
* @param DbaDefinition $dbaDefinition * @param DbaDefinition $dbaDefinition
* @param ViewDefinition $viewDefinition * @param ViewDefinition $viewDefinition
@ -285,7 +270,6 @@ class App
public function __construct( public function __construct(
Request $request, Request $request,
Authentication $auth, Authentication $auth,
Database $database,
IManageConfigValues $config, IManageConfigValues $config,
Mode $mode, Mode $mode,
BaseURL $baseURL, BaseURL $baseURL,
@ -293,14 +277,12 @@ class App
Profiler $profiler, Profiler $profiler,
L10n $l10n, L10n $l10n,
Arguments $args, Arguments $args,
IManagePersonalConfigValues $pConfig,
IHandleUserSessions $session, IHandleUserSessions $session,
DbaDefinition $dbaDefinition, DbaDefinition $dbaDefinition,
ViewDefinition $viewDefinition ViewDefinition $viewDefinition
) { ) {
$this->requestId = $request->getRequestId(); $this->requestId = $request->getRequestId();
$this->auth = $auth; $this->auth = $auth;
$this->database = $database;
$this->config = $config; $this->config = $config;
$this->mode = $mode; $this->mode = $mode;
$this->baseURL = $baseURL; $this->baseURL = $baseURL;
@ -308,7 +290,6 @@ class App
$this->logger = $logger; $this->logger = $logger;
$this->l10n = $l10n; $this->l10n = $l10n;
$this->args = $args; $this->args = $args;
$this->pConfig = $pConfig;
$this->session = $session; $this->session = $session;
$this->appHelper = DI::apphelper(); $this->appHelper = DI::apphelper();