]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Display pending contacts in the contact list
[friendica.git] / bin / console.php
index 410eabda094639db0d3d06a9a8eb41ec92220464..4c396854dc09c06564f5c4e86b01c645f49dfc5c 100755 (executable)
@@ -1,11 +1,10 @@
 #!/usr/bin/env php
 <?php
 
-require dirname(__DIR__) . '/vendor/autoload.php';
+use Dice\Dice;
 
-use Friendica\Factory;
+require dirname(__DIR__) . '/vendor/autoload.php';
 
-$a = Factory\DependencyFactory::setUp('console', dirname(__DIR__));
-\Friendica\BaseObject::setApp($a);
+$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
 
-(new Friendica\Core\Console($argv))->execute();
+(new Friendica\Core\Console($dice, $argv))->execute();