X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fconsole.php;h=a6513a2e8f992bdd52d5a8bfea7ff81e5c7e94ef;hb=d3929267d0d8fe9eac176685a34d2cfb2f8122ce;hp=6fa804fb98e3789f2596c68f9a543266abdd8810;hpb=92c1cbeeeccf31ae311b532866610b48c97dccfe;p=friendica.git diff --git a/bin/console.php b/bin/console.php index 6fa804fb98..a6513a2e8f 100755 --- a/bin/console.php +++ b/bin/console.php @@ -1,14 +1,12 @@ #!/usr/bin/env php addRules(include __DIR__ . '/../static/dependencies.config.php'); +require dirname(__DIR__) . '/vendor/autoload.php'; -$a = Factory\DependencyFactory::setUp('console', $dice); -\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();