X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=27522d8554762bb0a607f21fb38d3020394cb0d4;hb=7863406080bf4ea1ca73d6ffd49aac315b447b31;hp=15fbf437c5b176fe751997b647604367286bd0a0;hpb=6c2cf494b553833d116dbdbceea349d7f17cc728;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 15fbf437c5..27522d8554 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,11 +1,31 @@ #!/usr/bin/env php . + * + */ -require dirname(__DIR__) . '/vendor/autoload.php'; +use Dice\Dice; +use Psr\Log\LoggerInterface; -$dice = new \Dice\Dice(); -$dice = $dice->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();