]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Remove DependencyFactory
[friendica.git] / bin / auth_ejabberd.php
index ba3a9b8dd15b73b556edc34ef29470411896caa8..1f7ddefc610c5092136619b78b2d03c643d8d02f 100755 (executable)
@@ -32,7 +32,6 @@
  *
  */
 
-use Friendica\Factory;
 use Friendica\Util\ExAuth;
 
 if (sizeof($_SERVER["argv"]) == 0) {
@@ -54,9 +53,9 @@ require dirname(__DIR__) . '/vendor/autoload.php';
 $dice = new \Dice\Dice();
 $dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
 
-$a = Factory\DependencyFactory::setUp('auth_ejabbered', $dice);
+$appMode = $dice->create(\Friendica\App\Mode::class);
 
-if ($a->getMode()->isNormal()) {
+if ($appMode->isNormal()) {
        $oAuth = new ExAuth();
        $oAuth->readStdin();
 }