Skip to content

Commit becb437

Browse files
committed
move register step to constructor, it needs to be called before boot
1 parent 8088220 commit becb437

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

solid/lib/AppInfo/Application.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class Application extends App implements IBootstrap {
2626
* @param array $urlParams
2727
*/
2828
public function __construct(array $urlParams = []) {
29+
$backend = new \OCA\Solid\ClientAuth();
30+
\OC::$server->getUserManager()->registerBackend($backend);
31+
2932
parent::__construct(self::APP_ID, $urlParams);
3033
}
3134

@@ -68,7 +71,6 @@ public function register(IRegistrationContext $context): void {
6871
}
6972

7073
public function boot(IBootContext $context): void {
71-
\OC::$server->getUserManager()->registerBackend(new \OCA\Solid\ClientAuth());
7274
self::$userSubDomainsEnabled = OC::$server->get(AppConfig::class)->getValueBool(self::APP_ID, 'userSubDomainsEnabled');
7375
require_once(__DIR__.'/../../vendor/autoload.php');
7476
}

0 commit comments

Comments
 (0)