X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=87778308a5713a0b7846f511c73b2d346b613e2c;hb=96d2cddb54f3ea3ead6e43e5ca1f814ed6327987;hp=34952afcb0bfc0ef8f3d161e8bff1ca0eb413b2e;hpb=d0648b10ef107d0442cbabf55045333963e794fa;p=friendica.git diff --git a/index.php b/index.php index 34952afcb0..87778308a5 100644 --- a/index.php +++ b/index.php @@ -30,6 +30,9 @@ if (!file_exists(__DIR__ . '/vendor/autoload.php')) { require __DIR__ . '/vendor/autoload.php'; $dice = (new Dice())->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); @@ -48,5 +51,6 @@ $a->runFrontend( $dice->create(\Friendica\Content\Nav::class), $dice->create(Friendica\Module\Special\HTTPException::class), new \Friendica\Util\HTTPInputData($_SERVER), - $start_time + $start_time, + $_SERVER );