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