]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Using method-chaining for DICE
[friendica.git] / bin / auth_ejabberd.php
index a097febbce3f43f9be2099ff7fb71e61c516f93c..206e484470058bff0aa98c3625f2f47b4f29e0e4 100755 (executable)
@@ -32,6 +32,7 @@
  *
  */
 
+use Dice\Dice;
 use Friendica\App\Mode;
 use Friendica\BaseObject;
 use Friendica\Util\ExAuth;
@@ -52,8 +53,7 @@ chdir($directory);
 
 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');
 BaseObject::setDependencyInjection($dice);
 
 $appMode = $dice->create(Mode::class);