X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=27522d8554762bb0a607f21fb38d3020394cb0d4;hb=ce8e200461ed777fb31a9d3c2f07c7e8c31b3b56;hp=c39df953f287b0873748816638cd09475b82c5da;hpb=7efde8e334d6ca52fd1608fb9a78babcea4bdc9f;p=friendica.git diff --git a/bin/console.php b/bin/console.php index c39df953f2..27522d8554 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,9 +1,31 @@ #!/usr/bin/env php . + * + */ + +use Dice\Dice; +use Psr\Log\LoggerInterface; require dirname(__DIR__) . '/vendor/autoload.php'; -$a = new Friendica\App(dirname(__DIR__)); -\Friendica\BaseObject::setApp($a); +$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();