]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Display pending contacts in the contact list
[friendica.git] / bin / console.php
index 15fbf437c5b176fe751997b647604367286bd0a0..4c396854dc09c06564f5c4e86b01c645f49dfc5c 100755 (executable)
@@ -1,11 +1,10 @@
 #!/usr/bin/env php
 <?php
 
-require dirname(__DIR__) . '/vendor/autoload.php';
+use Dice\Dice;
 
-$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');
 
-(new Friendica\Core\Console($argv))->execute();
+(new Friendica\Core\Console($dice, $argv))->execute();