]> git.mxchange.org Git - friendica.git/blobdiff - bin/console.php
Using method-chaining for DICE
[friendica.git] / bin / console.php
index 3a64d1d2a05060ae51b808225290be9b86582bfd..4c396854dc09c06564f5c4e86b01c645f49dfc5c 100755 (executable)
@@ -1,9 +1,10 @@
 #!/usr/bin/env php
 <?php
 
+use Dice\Dice;
+
 require dirname(__DIR__) . '/vendor/autoload.php';
 
-$dice = new \Dice\Dice();
-$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
+$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
 
 (new Friendica\Core\Console($dice, $argv))->execute();