https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d2db3
)
Use BaseObject in auth_ejabberd because of static dependencies inside ExAuth
author
Philipp Holzer
<admin+github@philipp.info>
Sat, 27 Jul 2019 22:02:51 +0000
(
00:02
+0200)
committer
Philipp Holzer
<admin+github@philipp.info>
Sat, 27 Jul 2019 22:02:51 +0000
(
00:02
+0200)
bin/auth_ejabberd.php
patch
|
blob
|
history
diff --git
a/bin/auth_ejabberd.php
b/bin/auth_ejabberd.php
index
1f7ddef
..
a097feb
100755
(executable)
--- a/
bin/auth_ejabberd.php
+++ b/
bin/auth_ejabberd.php
@@
-32,6
+32,8
@@
*
*/
+use Friendica\App\Mode;
+use Friendica\BaseObject;
use Friendica\Util\ExAuth;
if (sizeof($_SERVER["argv"]) == 0) {
@@
-52,8
+54,9
@@
require dirname(__DIR__) . '/vendor/autoload.php';
$dice = new \Dice\Dice();
$dice = $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();