X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=7a6e26b42e02f6fdce75c77d3fbc0e23c79cf322;hb=dd8d9d7c70acc27bff59877f5782c2a455f6c3f4;hp=00ec0edb75e5d25e7de69d5ea42ba2b37a392678;hpb=96555a7385a73c3830a6c1715e19da5ffd509835;p=friendica.git diff --git a/index.php b/index.php index 00ec0edb75..7a6e26b42e 100644 --- a/index.php +++ b/index.php @@ -15,13 +15,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\Authentication::class) + $dice->create(\Friendica\Core\PConfig\IPConfig::class), + $dice->create(\Friendica\App\Authentication::class), + $dice->create(\Friendica\App\Page::class) );