]> source.dussan.org Git - nextcloud-server.git/commitdiff
register app autoload instead of loading apps
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Fri, 12 Aug 2016 11:23:14 +0000 (13:23 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 16 Aug 2016 19:09:36 +0000 (21:09 +0200)
apps/systemtags/lib/Settings/Admin.php
lib/private/Installer.php
lib/private/legacy/app.php

index 351c2264397038b41767c39548e01b75b3b29446..ed72e17cf506ae0d37f056b63c3379a7e7da5448 100644 (file)
 
 namespace OCA\SystemTags\Settings;
 
-use OCA\Federation\TrustedServers;
 use OCP\AppFramework\Http\TemplateResponse;
 use OCP\Settings\ISettings;
 
 class Admin implements ISettings {
 
-       /** @var TrustedServers */
-       private $trustedServers;
-
-       public function __construct(TrustedServers $trustedServers) {
-               $this->trustedServers = $trustedServers;
-       }
-
        /**
         * @return TemplateResponse
         */
index 1c45679cd32970eb504cb448683da21f54392c85..3d8a923417a5d0e70fec8a868db46df907d70f10 100644 (file)
@@ -594,7 +594,8 @@ class Installer {
                OC_App::setAppTypes($info['id']);
 
                if(isset($info['settings']) && is_array($info['settings'])) {
-                       \OC_App::loadApp($app, false);
+                       // requires that autoloading was registered for the app,
+                       // as happens before running the install.php some lines above
                        \OC::$server->getSettingsManager()->setupSettings($info['settings']);
                }
 
index 4144f3f6cf502eb60e69e3734bee48c2a9bbecd9..b39f5fa789049d0749e8bd24272684da782fbd30 100644 (file)
@@ -348,7 +348,8 @@ class OC_App {
 
                $info = self::getAppInfo($app);
                if(isset($info['settings']) && is_array($info['settings'])) {
-                       self::loadApp($app, false);
+                       $appPath = self::getAppPath($app);
+                       self::registerAutoloading($app, $appPath);
                        \OC::$server->getSettingsManager()->setupSettings($info['settings']);
                }
        }
@@ -1170,7 +1171,8 @@ class OC_App {
                        }
 
                        if(isset($info['settings']) && is_array($info['settings'])) {
-                               self::loadApp($app, false);
+                               $appPath = self::getAppPath($app);
+                               self::registerAutoloading($app, $appPath);
                                \OC::$server->getSettingsManager()->setupSettings($info['settings']);
                        }
 
@@ -1212,7 +1214,8 @@ class OC_App {
                }
                self::setupBackgroundJobs($appData['background-jobs']);
                if(isset($appData['settings']) && is_array($appData['settings'])) {
-                       self::loadApp($appId, false);
+                       $appPath = self::getAppPath($appId);
+                       self::registerAutoloading($appId, $appPath);
                        \OC::$server->getSettingsManager()->setupSettings($appData['settings']);
                }