X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=4857b1f12971a20a82c5ae62893bee154b5ebbb7;hb=7d714319c8d528976eaf48f83d588b9cd12e21c6;hp=1e6439e0383cb22d20d80c91af4bbbeef393b116;hpb=4c4ed63dca13cc0382af9020e69980c63f988b47;p=friendica.git diff --git a/index.php b/index.php index 1e6439e038..4857b1f129 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\App\Authentication::class), + $dice->create(\Friendica\App\Page::class) );