]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker.php
Refactor dynamic App::getConfig() to static DI::config()
[friendica.git] / src / Core / Worker.php
index b9362dace5afdf315c11b89fb70ea94dfa87a9da..a87fef07713b7055f4ccfb6e825e4d241254d6ad 100644 (file)
@@ -4,7 +4,6 @@
  */
 namespace Friendica\Core;
 
-use Friendica\BaseObject;
 use Friendica\Core;
 use Friendica\Database\DBA;
 use Friendica\DI;
@@ -1087,7 +1086,7 @@ class Worker
                $args = ['no_cron' => !$do_cron];
 
                $a = get_app();
-               $process = new Core\Process($a->getLogger(), $a->getMode(), $a->getConfig(), $a->getBasePath());
+               $process = new Core\Process($a->getLogger(), $a->getMode(), DI::config(), $a->getBasePath());
                $process->run($command, $args);
 
                // after spawning we have to remove the flag.