]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Merge pull request #7988 from friendica/MrPetovan-notice
[friendica.git] / bin / worker.php
index f6b2d90a59313ab088f2653e8a61417a62e67465..469dcb001e6419accd062df13597abc705cfbf2d 100755 (executable)
@@ -11,6 +11,7 @@ use Friendica\BaseObject;
 use Friendica\Core\Config;
 use Friendica\Core\Update;
 use Friendica\Core\Worker;
+use Psr\Log\LoggerInterface;
 
 // Get options
 $shortopts = 'sn';
@@ -32,6 +33,7 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
 require dirname(__DIR__) . '/vendor/autoload.php';
 
 $dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
+$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['worker']]);
 
 BaseObject::setDependencyInjection($dice);
 $a = BaseObject::getApp();