mirror of
https://github.com/friendica/friendica
synced 2024-12-22 18:00:16 +00:00
Inline App::load() call in new processRequest() method
This commit is contained in:
parent
40fa8559e5
commit
7a7b8d3e27
2 changed files with 9 additions and 4 deletions
|
@ -29,10 +29,7 @@ $dice = $dice->addRule(Friendica\App\Mode::class, ['call' => [['determineRunMode
|
|||
|
||||
$a = \Friendica\App::fromDice($dice);
|
||||
|
||||
$a->load(
|
||||
$dice->create(\Friendica\Database\Definition\DbaDefinition::class),
|
||||
$dice->create(\Friendica\Database\Definition\ViewDefinition::class),
|
||||
);
|
||||
$a->processRequest();
|
||||
|
||||
\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX);
|
||||
|
||||
|
|
|
@ -154,6 +154,14 @@ class App
|
|||
$this->appHelper = $appHelper;
|
||||
}
|
||||
|
||||
public function processRequest(): void
|
||||
{
|
||||
$this->load(
|
||||
$this->container->create(DbaDefinition::class),
|
||||
$this->container->create(ViewDefinition::class),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the whole app instance
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue