run setup functions

This commit is contained in:
Art4 2024-12-28 22:57:24 +00:00
parent 318c57df12
commit 8fef32b954

View file

@ -440,14 +440,14 @@ class App
public function processJetstream(): void public function processJetstream(): void
{ {
/** @var \Friendica\Core\Addon\Capability\ICanLoadAddons $addonLoader */ $this->setupContainerForAddons();
$addonLoader = $this->container->create(\Friendica\Core\Addon\Capability\ICanLoadAddons::class);
$this->container = $this->container->addRules($addonLoader->getActiveAddonConfig('dependencies'));
$this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [Logger\Capability\LogChannel::DAEMON]]); $this->setupContainerForLogger(LogChannel::DAEMON);
$this->setupLegacyServiceLocator();
$this->registerErrorHandler();
DI::init($this->container);
\Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));
Addon::loadAddons(); Addon::loadAddons();
Hook::loadHooks(); Hook::loadHooks();
DI::config()->reload(); DI::config()->reload();