diff --git a/src/App.php b/src/App.php index afdc9a4d48..c5a7990994 100644 --- a/src/App.php +++ b/src/App.php @@ -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 */