X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=27522d8554762bb0a607f21fb38d3020394cb0d4;hb=a74c547af470947c3420157cba237c4951da58f4;hp=9c25279d37222a77acb62a186b556761251dd6f6;hpb=88353ce56f0e5da6352af2d999a58bd0c9b375f7;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 9c25279d37..27522d8554 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,9 +1,31 @@ #!/usr/bin/env php . + * + */ -include_once dirname(__DIR__) . '/boot.php'; +use Dice\Dice; +use Psr\Log\LoggerInterface; -$a = new Friendica\App(dirname(__DIR__)); -\Friendica\BaseObject::setApp($a); +require dirname(__DIR__) . '/vendor/autoload.php'; -(new Friendica\Core\Console($argv))->execute(); +$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php'); +$dice = $dice->addRule(LoggerInterface::class,['constructParams' => ['console']]); + +(new Friendica\Core\Console($dice, $argv))->execute();