Move Mode::setExecutor() call inside App::runFrontend()

This commit is contained in:
Art4 2025-01-22 11:59:24 +00:00
parent bf28afb651
commit 064b70f4c0

View file

@ -166,8 +166,6 @@ class App
$this->registerTemplateEngine(); $this->registerTemplateEngine();
$this->mode->setExecutor(Mode::INDEX);
$this->runFrontend( $this->runFrontend(
$this->container->create(IManagePersonalConfigValues::class), $this->container->create(IManagePersonalConfigValues::class),
$this->container->create(Page::class), $this->container->create(Page::class),
@ -348,6 +346,8 @@ class App
float $start_time, float $start_time,
ServerRequestInterface $request ServerRequestInterface $request
) { ) {
$this->mode->setExecutor(Mode::INDEX);
$httpInput = new HTTPInputData($request->getServerParams()); $httpInput = new HTTPInputData($request->getServerParams());
$serverVars = $request->getServerParams(); $serverVars = $request->getServerParams();
$queryVars = $request->getQueryParams(); $queryVars = $request->getQueryParams();