@@ -31,22 +31,22 @@ |
||
31 | 31 | use OCP\AppFramework\Bootstrap\IRegistrationContext; |
32 | 32 | |
33 | 33 | class Application extends App implements IBootstrap { |
34 | - public function __construct(array $urlParams = []) { |
|
35 | - parent::__construct('testing', $urlParams); |
|
36 | - } |
|
34 | + public function __construct(array $urlParams = []) { |
|
35 | + parent::__construct('testing', $urlParams); |
|
36 | + } |
|
37 | 37 | |
38 | - public function register(IRegistrationContext $context): void { |
|
39 | - } |
|
38 | + public function register(IRegistrationContext $context): void { |
|
39 | + } |
|
40 | 40 | |
41 | - public function boot(IBootContext $context): void { |
|
42 | - $server = $context->getServerContainer(); |
|
43 | - $config = $server->getConfig(); |
|
44 | - if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') { |
|
45 | - $userManager = $server->getUserManager(); |
|
41 | + public function boot(IBootContext $context): void { |
|
42 | + $server = $context->getServerContainer(); |
|
43 | + $config = $server->getConfig(); |
|
44 | + if ($config->getAppValue('testing', 'enable_alt_user_backend', 'no') === 'yes') { |
|
45 | + $userManager = $server->getUserManager(); |
|
46 | 46 | |
47 | - // replace all user backends with this one |
|
48 | - $userManager->clearBackends(); |
|
49 | - $userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class)); |
|
50 | - } |
|
51 | - } |
|
47 | + // replace all user backends with this one |
|
48 | + $userManager->clearBackends(); |
|
49 | + $userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class)); |
|
50 | + } |
|
51 | + } |
|
52 | 52 | } |