X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=1b62b71c1cf62d9845ac3c09d2edf96a03f05430;hb=be3b76170e41c7f632370b9f582da9c98d6fbd91;hp=4857b1f12971a20a82c5ae62893bee154b5ebbb7;hpb=85dc9bb96b30819fcf544c9aa1013a8f380d6981;p=friendica.git diff --git a/index.php b/index.php index 4857b1f129..1b62b71c1c 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); +\Friendica\Core\Logger\Handler\ErrorHandler::register($dice->create(\Psr\Log\LoggerInterface::class)); + $a = \Friendica\DI::app(); +\Friendica\DI::mode()->setExecutor(\Friendica\App\Mode::INDEX); + $a->runFrontend( - $dice->create(\Friendica\App\Module::class), $dice->create(\Friendica\App\Router::class), - $dice->create(\Friendica\Core\PConfig\IPConfig::class), - $dice->create(\Friendica\App\Authentication::class), - $dice->create(\Friendica\App\Page::class) + $dice->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class), + $dice->create(\Friendica\Security\Authentication::class), + $dice->create(\Friendica\App\Page::class), + $dice->create(\Friendica\Content\Nav::class), + $dice->create(Friendica\Module\Special\HTTPException::class), + new \Friendica\Util\HTTPInputData($_SERVER), + $start_time, + $_SERVER );