Merge pull request #18005 from nextcloud/fix/manual-app-instances

Remove some more direct app instance creations
This commit is contained in:
Roeland Jago Douma 2019-11-26 09:20:14 +01:00 committed by GitHub
commit 7015501a74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -24,5 +24,5 @@ declare(strict_types=1);
*
*/
$app = new \OCA\AdminAudit\AppInfo\Application();
$app = \OC::$server->query(\OCA\AdminAudit\AppInfo\Application::class);
$app->register();

View File

@ -33,7 +33,7 @@ OC::$CLASSPATH['OC_Mount_Config'] = 'files_external/lib/config.php';
require_once __DIR__ . '/../3rdparty/autoload.php';
// register Application object singleton
\OC_Mount_Config::$app = new \OCA\Files_External\AppInfo\Application();
\OC_Mount_Config::$app = \OC::$server->query(\OCA\Files_External\AppInfo\Application::class);
$appContainer = \OC_Mount_Config::$app->getContainer();
\OCA\Files\App::getNavigationManager()->add(function () {

View File

@ -34,7 +34,7 @@
return new OCA\User_LDAP\GroupPluginManager();
});
$app = new \OCA\User_LDAP\AppInfo\Application();
$app = \OC::$server->query(\OCA\User_LDAP\AppInfo\Application::class);
$helper = new \OCA\User_LDAP\Helper(\OC::$server->getConfig());
$configPrefixes = $helper->getServerConfigurationPrefixes(true);