Remove some more direct app instance creations

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2019-11-19 14:36:27 +01:00 committed by Roeland Jago Douma
parent 3c17d1b5e2
commit 97385cef33
No known key found for this signature in database
GPG Key ID: F941078878347C0C
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);