]> 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 bf6d069d12bb58f1507f9d9ee6e0c14763c6e08e..206e484470058bff0aa98c3625f2f47b4f29e0e4 100755 (executable)
@@ -32,7 +32,9 @@
  *
  */
 
-use Friendica\Factory;
+use Dice\Dice;
+use Friendica\App\Mode;
+use Friendica\BaseObject;
 use Friendica\Util\ExAuth;
 
 if (sizeof($_SERVER["argv"]) == 0) {
@@ -51,9 +53,12 @@ chdir($directory);
 
 require dirname(__DIR__) . '/vendor/autoload.php';
 
-$a = Factory\DependencyFactory::setUp('auth_ejabbered', dirname(__DIR__));
+$dice = (new Dice())->addRules(include __DIR__ . '/../static/dependencies.config.php');
+BaseObject::setDependencyInjection($dice);
 
-if ($a->getMode()->isNormal()) {
+$appMode = $dice->create(Mode::class);
+
+if ($appMode->isNormal()) {
        $oAuth = new ExAuth();
        $oAuth->readStdin();
 }