Inline App::load() call in new processRequest() method

This commit is contained in:
Art4 2024-12-20 10:04:02 +00:00
parent 40fa8559e5
commit 7a7b8d3e27
2 changed files with 9 additions and 4 deletions

View file

@ -29,10 +29,7 @@ $dice = $dice->addRule(Friendica\App\Mode::class, ['call' => [['determineRunMode
$a = \Friendica\App::fromDice($dice); $a = \Friendica\App::fromDice($dice);
$a->load( $a->processRequest();
$dice->create(\Friendica\Database\Definition\DbaDefinition::class),
$dice->create(\Friendica\Database\Definition\ViewDefinition::class),
);
\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX); \Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX);

View file

@ -154,6 +154,14 @@ class App
$this->appHelper = $appHelper; $this->appHelper = $appHelper;
} }
public function processRequest(): void
{
$this->load(
$this->container->create(DbaDefinition::class),
$this->container->create(ViewDefinition::class),
);
}
/** /**
* Load the whole app instance * Load the whole app instance
*/ */