X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=1a88a7b283af3dab6cf81c55b91eb7377c7c3a8f;hb=eb011f47bbea6c3c4a2a839aad87f34b8b804fb1;hp=50e553bcd892f71e967662a5cb1990066a301ce9;hpb=9682cc440ce8ac227079dde81631eac1b7141b83;p=friendica.git diff --git a/index.php b/index.php index 50e553bcd8..1a88a7b283 100644 --- a/index.php +++ b/index.php @@ -13,9 +13,16 @@ if (!file_exists(__DIR__ . '/vendor/autoload.php')) { require __DIR__ . '/vendor/autoload.php'; $dice = (new Dice())->addRules(include __DIR__ . '/static/dependencies.config.php'); +$dice = $dice->addRule(Friendica\App\Mode::class, ['call' => [['determineRunMode', [false, $_SERVER], Dice::CHAIN_CALL]]]); -\Friendica\BaseObject::setDependencyInjection($dice); +\Friendica\DI::init($dice); -$a = \Friendica\BaseObject::getApp(); +$a = \Friendica\DI::app(); -$a->runFrontend(); +$a->runFrontend( + $dice->create(\Friendica\App\Module::class), + $dice->create(\Friendica\App\Router::class), + $dice->create(\Friendica\Core\Config\IPConfiguration::class), + $dice->create(\Friendica\App\Authentication::class), + $dice->create(\Friendica\App\Page::class) +);