]> git.mxchange.org Git - friendica.git/commitdiff
Inject AppHelper into App::load() via parameter
authorArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 13:17:53 +0000 (13:17 +0000)
committerArt4 <art4@wlabs.de>
Wed, 22 Jan 2025 13:17:53 +0000 (13:17 +0000)
src/App.php

index af1147e091244920d65cec024bac6f6b278ad303..6ebac26d4933e60ec8cc566998481f9185ff80a9 100644 (file)
@@ -165,6 +165,7 @@ class App
                        $this->mode,
                        $this->config,
                        $this->profiler,
+                       $this->appHelper,
                );
 
                $this->registerTemplateEngine();
@@ -280,7 +281,8 @@ class App
                ViewDefinition $viewDefinition,
                Mode $mode,
                IManageConfigValues $config,
-               Profiler $profiler
+               Profiler $profiler,
+               AppHelper $appHelper
        ): void {
                if ($config->get('system', 'ini_max_execution_time') !== false) {
                        set_time_limit((int) $config->get('system', 'ini_max_execution_time'));
@@ -302,7 +304,7 @@ class App
 
                if ($mode->has(Mode::DBAVAILABLE)) {
                        Core\Hook::loadHooks();
-                       $loader = (new Config())->createConfigFileManager($this->appHelper->getBasePath(), $serverParams);
+                       $loader = (new Config())->createConfigFileManager($appHelper->getBasePath(), $serverParams);
                        Core\Hook::callAll('load_config', $loader);
 
                        // Hooks are now working, reload the whole definitions with hook enabled