X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef;hb=81d500c271627fe605444b8c900f07375c609d98;hp=15fbf437c5b176fe751997b647604367286bd0a0;hpb=9d45118356b0a72172661ae373845e403b4ed9dc;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 15fbf437c5..a6513a2e8f 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,11 +1,12 @@ #!/usr/bin/env php addRules(include __DIR__ . '/../static/dependencies.config.php'); +require dirname(__DIR__) . '/vendor/autoload.php'; -\Friendica\BaseObject::setDependencyInjection($dice); +$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php'); +$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]); -(new Friendica\Core\Console($argv))->execute(); +(new Friendica\Core\Console($dice, $argv))->execute();