X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=87778308a5713a0b7846f511c73b2d346b613e2c;hb=6478b5ba5ff534e1b8cf03668245ee354a08199b;hp=0afd2c7d3eefa8b0c9daf73cfdeb51164aabfe28;hpb=4208535c16f0e8196effe230cc34141551a7be18;p=friendica.git diff --git a/index.php b/index.php index 0afd2c7d3e..87778308a5 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ addRules(include __DIR__ . '/static/dependencies.config.php'); +/** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */ +$addonLoader = $dice->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class); +$dice = $dice->addRules($addonLoader->getActiveAddonConfig('dependencies')); $dice = $dice->addRule(Friendica\App\Mode::class, ['call' => [['determineRunMode', [false, $_SERVER], Dice::CHAIN_CALL]]]); \Friendica\DI::init($dice); @@ -41,11 +44,13 @@ $a = \Friendica\DI::app(); \Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX); $a->runFrontend( - $dice->create(\Friendica\App\ModuleController::class), $dice->create(\Friendica\App\Router::class), $dice->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class), $dice->create(\Friendica\Security\Authentication::class), $dice->create(\Friendica\App\Page::class), - $dice, - $start_time + $dice->create(\Friendica\Content\Nav::class), + $dice->create(Friendica\Module\Special\HTTPException::class), + new \Friendica\Util\HTTPInputData($_SERVER), + $start_time, + $_SERVER );