inline App::setupContainerForRunningFrontend() method

This commit is contained in:
Art4 2024-12-25 21:27:08 +00:00
parent ce7fd1b0e2
commit 26f1c5f1dc

View file

@ -123,7 +123,15 @@ class App
public function processRequest(ServerRequestInterface $request, float $start_time): void
{
$this->setupContainerForRunningFrontend($request);
$this->setupContainerForAddons();
$this->container = $this->container->addRule(Mode::class, [
'call' => [
['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
],
]);
$this->setupLegacyServerLocator();
$this->registerErrorHandler();
@ -182,19 +190,6 @@ class App
}
}
private function setupContainerForRunningFrontend(ServerRequestInterface $request): void
{
$this->setupContainerForAddons();
$this->container = $this->container->addRule(Mode::class, [
'call' => [
['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
],
]);
$this->setupLegacyServerLocator();
}
private function setupContainerForAddons(): void
{
/** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */