mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 11:54:31 +02:00
move load() call outside of constructor to remove side effects
This commit is contained in:
parent
23e3af4a09
commit
9ef3fdc857
3 changed files with 7 additions and 8 deletions
|
@ -29,6 +29,11 @@ $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),
|
||||
);
|
||||
|
||||
\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX);
|
||||
|
||||
$a->runFrontend(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue