]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused dependencies
authorArt4 <art4@wlabs.de>
Fri, 8 Nov 2024 09:44:01 +0000 (09:44 +0000)
committerArt4 <art4@wlabs.de>
Fri, 8 Nov 2024 09:44:01 +0000 (09:44 +0000)
src/App.php

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