]> git.mxchange.org Git - friendica.git/commitdiff
run setup functions
authorArt4 <art4@wlabs.de>
Sat, 28 Dec 2024 22:57:24 +0000 (22:57 +0000)
committerArt4 <art4@wlabs.de>
Sat, 28 Dec 2024 22:57:24 +0000 (22:57 +0000)
src/App.php

index 931e6c542c9d15b9fc4edaa819d8ee8f85edb684..f16c2f89fd47b4f5b7210a6977248dfaab6fc0b4 100644 (file)
@@ -440,14 +440,14 @@ class App
 
        public function processJetstream(): void
        {
-               /** @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->setupContainerForAddons();
+
+               $this->setupContainerForLogger(LogChannel::DAEMON);
 
-               $this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [Logger\Capability\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();
                Hook::loadHooks();
                DI::config()->reload();