X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=dbdac5fcbfa82279175090d15fd09cbe44dce383;hb=221746bff3483ff3601c63cde9ec074960df950c;hp=1e6439e0383cb22d20d80c91af4bbbeef393b116;hpb=4c4ed63dca13cc0382af9020e69980c63f988b47;p=friendica.git diff --git a/index.php b/index.php index 1e6439e038..dbdac5fcbf 100644 --- a/index.php +++ b/index.php @@ -13,6 +13,7 @@ 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); @@ -21,5 +22,6 @@ $a = \Friendica\BaseObject::getApp(); $a->runFrontend( $dice->create(\Friendica\App\Module::class), $dice->create(\Friendica\App\Router::class), - $dice->create(\Friendica\Core\Config\PConfiguration::class) + $dice->create(\Friendica\Core\Config\PConfiguration::class), + $dice->create(\Friendica\App\Authentication::class) );