diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2019-11-26 09:20:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-26 09:20:14 +0100 |
commit | 7015501a740ec7d930b21752d99024c97c31ab4f (patch) | |
tree | 00e8b228e81650756335a35ed907ede688479049 /apps | |
parent | 0fab27f459d3276a2559cdee5693bfec8c2cf1c9 (diff) | |
parent | 97385cef334a1bfb3ace32007349af3ca1094c08 (diff) | |
download | nextcloud-server-7015501a740ec7d930b21752d99024c97c31ab4f.tar.gz nextcloud-server-7015501a740ec7d930b21752d99024c97c31ab4f.zip |
Merge pull request #18005 from nextcloud/fix/manual-app-instances
Remove some more direct app instance creations
Diffstat (limited to 'apps')
-rw-r--r-- | apps/admin_audit/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/files_external/appinfo/app.php | 2 | ||||
-rw-r--r-- | apps/user_ldap/appinfo/app.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/admin_audit/appinfo/app.php b/apps/admin_audit/appinfo/app.php index 5cee5c3db70..85e19011e08 100644 --- a/apps/admin_audit/appinfo/app.php +++ b/apps/admin_audit/appinfo/app.php @@ -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(); diff --git a/apps/files_external/appinfo/app.php b/apps/files_external/appinfo/app.php index 3f7094f4dca..856b04fde15 100644 --- a/apps/files_external/appinfo/app.php +++ b/apps/files_external/appinfo/app.php @@ -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 () { diff --git a/apps/user_ldap/appinfo/app.php b/apps/user_ldap/appinfo/app.php index c6e1208e6ea..06fb273f060 100644 --- a/apps/user_ldap/appinfo/app.php +++ b/apps/user_ldap/appinfo/app.php @@ -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); |