X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=27522d8554762bb0a607f21fb38d3020394cb0d4;hb=ce8e200461ed777fb31a9d3c2f07c7e8c31b3b56;hp=9ce327f9a5f2b43c1408ff842d8361959e77de23;hpb=dcf2ed26bb19f908f5b9268f938e70d9396d6ccf;p=friendica.git diff --git a/bin/console.php b/bin/console.php old mode 100644 new mode 100755 index 9ce327f9a5..27522d8554 --- a/bin/console.php +++ b/bin/console.php @@ -1,9 +1,31 @@ -#!/bin/env php +#!/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())->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();