]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Display pending contacts in the contact list
[friendica.git] / bin / auth_ejabberd.php
index 1f7ddefc610c5092136619b78b2d03c643d8d02f..206e484470058bff0aa98c3625f2f47b4f29e0e4 100755 (executable)
@@ -32,6 +32,9 @@
  *
  */
 
+use Dice\Dice;
+use Friendica\App\Mode;
+use Friendica\BaseObject;
 use Friendica\Util\ExAuth;
 
 if (sizeof($_SERVER["argv"]) == 0) {
@@ -50,10 +53,10 @@ 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(\Friendica\App\Mode::class);
+$appMode = $dice->create(Mode::class);
 
 if ($appMode->isNormal()) {
        $oAuth = new ExAuth();