Remove some more direct app instance creations
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
3c17d1b5e2
commit
97385cef33
|
@ -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();
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue