mirror of
https://github.com/friendica/friendica
synced 2025-01-07 02:44:43 +00:00
inline App::setupContainerForRunningFrontend() method
This commit is contained in:
parent
ce7fd1b0e2
commit
26f1c5f1dc
1 changed files with 9 additions and 14 deletions
23
src/App.php
23
src/App.php
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue