X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=dd884a976ef3036237b3687047d8f13aa79f7605;hb=9c0342b907c279fe335676a1cbeacae8a5ac5c85;hp=1e6439e0383cb22d20d80c91af4bbbeef393b116;hpb=df5ffea15beb1eb8dc6526a82b7b58f3af614ef0;p=friendica.git diff --git a/index.php b/index.php index 1e6439e038..dd884a976e 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,22 @@ . + * */ use Dice\Dice; @@ -13,13 +28,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( $dice->create(\Friendica\App\Module::class), $dice->create(\Friendica\App\Router::class), - $dice->create(\Friendica\Core\Config\PConfiguration::class) + $dice->create(\Friendica\Core\PConfig\IPConfig::class), + $dice->create(\Friendica\Security\Authentication::class), + $dice->create(\Friendica\App\Page::class) );