]> git.mxchange.org Git - friendica.git/blobdiff - bin/auth_ejabberd.php
Added test case for Router->getModuleClass
[friendica.git] / bin / auth_ejabberd.php
index 1f03b94af90017fb164221b2d6eab38a5d391aa9..bf6d069d12bb58f1507f9d9ee6e0c14763c6e08e 100755 (executable)
@@ -32,7 +32,7 @@
  *
  */
 
-use Friendica\App;
+use Friendica\Factory;
 use Friendica\Util\ExAuth;
 
 if (sizeof($_SERVER["argv"]) == 0) {
@@ -49,10 +49,9 @@ $directory = realpath($directory . DIRECTORY_SEPARATOR . "..");
 
 chdir($directory);
 
-require_once "boot.php";
-require_once "include/dba.php";
+require dirname(__DIR__) . '/vendor/autoload.php';
 
-$a = new App(dirname(__DIR__));
+$a = Factory\DependencyFactory::setUp('auth_ejabbered', dirname(__DIR__));
 
 if ($a->getMode()->isNormal()) {
        $oAuth = new ExAuth();