X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=dd884a976ef3036237b3687047d8f13aa79f7605;hb=0d48b103a1cc8ba0b492d29bdf1eb1be6847c281;hp=5407532d494fdec91eefcf52b00c966ba8c26056;hpb=36ba7fa79c7c2d4304f3423d84215771e3bb6a9f;p=friendica.git diff --git a/index.php b/index.php index 5407532d49..dd884a976e 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,22 @@ . + * */ use Dice\Dice; @@ -15,12 +30,14 @@ 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) );