X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=87778308a5713a0b7846f511c73b2d346b613e2c;hb=fc0703005d20d7e16e71219be5093747f0376403;hp=90df9c00e9b77d56d3a1d192836fc48ff772ddad;hpb=b3226e11ac23e6487cb9539bc73c66fe6627ee44;p=friendica.git diff --git a/index.php b/index.php index 90df9c00e9..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);