X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=5407532d494fdec91eefcf52b00c966ba8c26056;hb=7d150edb295cfceef27b0406f5a980c15a2836c0;hp=50e553bcd892f71e967662a5cb1990066a301ce9;hpb=6b7dfd0c712bc89de955a735fcbca60dc973d71d;p=friendica.git diff --git a/index.php b/index.php index 50e553bcd8..5407532d49 100644 --- a/index.php +++ b/index.php @@ -13,9 +13,14 @@ 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); $a = \Friendica\BaseObject::getApp(); -$a->runFrontend(); +$a->runFrontend( + $dice->create(\Friendica\App\Module::class), + $dice->create(\Friendica\App\Router::class), + $dice->create(\Friendica\Core\Config\PConfiguration::class) +);