]> git.mxchange.org Git - friendica.git/commitdiff
Fix method order in App class
authorArt4 <art4@wlabs.de>
Sun, 17 Nov 2024 19:53:17 +0000 (19:53 +0000)
committerArt4 <art4@wlabs.de>
Sun, 17 Nov 2024 19:53:17 +0000 (19:53 +0000)
src/App.php

index afdc9a4d48805f9160ec361c837794f4f99e0b1e..c5a79909949a0a0d9234d88f4081278d31e5031b 100644 (file)
@@ -105,6 +105,35 @@ class App implements AppHelper
         */
        private $appHelper;
 
+       public function __construct(
+               Request $request,
+               Authentication $auth,
+               IManageConfigValues $config,
+               Mode $mode,
+               BaseURL $baseURL,
+               LoggerInterface $logger,
+               Profiler $profiler,
+               L10n $l10n,
+               Arguments $args,
+               IHandleUserSessions $session,
+               DbaDefinition $dbaDefinition,
+               ViewDefinition $viewDefinition
+       ) {
+               $this->requestId = $request->getRequestId();
+               $this->auth      = $auth;
+               $this->config    = $config;
+               $this->mode      = $mode;
+               $this->baseURL   = $baseURL;
+               $this->profiler  = $profiler;
+               $this->logger    = $logger;
+               $this->l10n      = $l10n;
+               $this->args      = $args;
+               $this->session   = $session;
+               $this->appHelper = DI::apphelper();
+
+               $this->load($dbaDefinition, $viewDefinition);
+       }
+
        /**
         * Set the profile owner ID
         *
@@ -264,35 +293,6 @@ class App implements AppHelper
                return $this->appHelper->getBasePath();
        }
 
-       public function __construct(
-               Request $request,
-               Authentication $auth,
-               IManageConfigValues $config,
-               Mode $mode,
-               BaseURL $baseURL,
-               LoggerInterface $logger,
-               Profiler $profiler,
-               L10n $l10n,
-               Arguments $args,
-               IHandleUserSessions $session,
-               DbaDefinition $dbaDefinition,
-               ViewDefinition $viewDefinition
-       ) {
-               $this->requestId = $request->getRequestId();
-               $this->auth      = $auth;
-               $this->config    = $config;
-               $this->mode      = $mode;
-               $this->baseURL   = $baseURL;
-               $this->profiler  = $profiler;
-               $this->logger    = $logger;
-               $this->l10n      = $l10n;
-               $this->args      = $args;
-               $this->session   = $session;
-               $this->appHelper = DI::apphelper();
-
-               $this->load($dbaDefinition, $viewDefinition);
-       }
-
        /**
         * Load the whole app instance
         */