{
/** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */
$addonLoader = $this->container->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class);
+
$this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies'));
- $this->container = $this->container->addRule(\Friendica\App\Mode::class, ['call' => [['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL]]]);
+ $this->container = $this->container->addRule(Mode::class, [
+ 'call' => [
+ ['determineRunMode', [false, $request->getServerParams()], Dice::CHAIN_CALL],
+ ],
+ ]);
\Friendica\DI::init($this->container);
- \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));
+ \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(LoggerInterface::class));
}
/**