Fix method order in App class

This commit is contained in:
Art4 2024-11-17 19:53:17 +00:00
parent 9ebdd9f95c
commit e320b010c7

View file

@ -105,6 +105,35 @@ class App implements AppHelper
*/ */
private $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 * Set the profile owner ID
* *
@ -264,35 +293,6 @@ class App implements AppHelper
return $this->appHelper->getBasePath(); 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 * Load the whole app instance
*/ */