mirror of
https://github.com/friendica/friendica
synced 2024-12-23 03:20:15 +00:00
Use BaseObject in auth_ejabberd because of static dependencies inside ExAuth
This commit is contained in:
parent
51d2db3998
commit
930ce855f8
1 changed files with 4 additions and 1 deletions
|
@ -32,6 +32,8 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
use Friendica\App\Mode;
|
||||||
|
use Friendica\BaseObject;
|
||||||
use Friendica\Util\ExAuth;
|
use Friendica\Util\ExAuth;
|
||||||
|
|
||||||
if (sizeof($_SERVER["argv"]) == 0) {
|
if (sizeof($_SERVER["argv"]) == 0) {
|
||||||
|
@ -52,8 +54,9 @@ require dirname(__DIR__) . '/vendor/autoload.php';
|
||||||
|
|
||||||
$dice = new \Dice\Dice();
|
$dice = new \Dice\Dice();
|
||||||
$dice = $dice->addRules(include __DIR__ . '/../static/dependencies.config.php');
|
$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()) {
|
if ($appMode->isNormal()) {
|
||||||
$oAuth = new ExAuth();
|
$oAuth = new ExAuth();
|
||||||
|
|
Loading…
Reference in a new issue