diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-16 19:41:22 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-18 08:48:45 +0100 |
commit | 3cf39c573f389ca0d55ee2e7dbfe05a518ef94a3 (patch) | |
tree | a64887800d551c01ac84f3132ad8297ad47c1f0e /lib/private/Installer.php | |
parent | b5ba1dec5d7e6a9822185d76a5952244d0152051 (diff) | |
download | nextcloud-server-3cf39c573f389ca0d55ee2e7dbfe05a518ef94a3.tar.gz nextcloud-server-3cf39c573f389ca0d55ee2e7dbfe05a518ef94a3.zip |
Allow lazy app registration
During app installation we run migration steps. Those steps may use
services the app registers or classes from composer. Hence we have to
make sure the app runs through the registration.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Installer.php')
-rw-r--r-- | lib/private/Installer.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/Installer.php b/lib/private/Installer.php index 9388711697a..a2c4f9beff8 100644 --- a/lib/private/Installer.php +++ b/lib/private/Installer.php @@ -42,6 +42,7 @@ namespace OC; use Doctrine\DBAL\Exception\TableExistsException; use OC\App\AppStore\Bundles\Bundle; use OC\App\AppStore\Fetcher\AppFetcher; +use OC\AppFramework\Bootstrap\Coordinator; use OC\Archive\TAR; use OC_App; use OC_DB; @@ -138,6 +139,9 @@ class Installer { // check for required dependencies \OC_App::checkAppDependencies($this->config, $l, $info, $ignoreMax); + /** @var Coordinator $coordinator */ + $coordinator = \OC::$server->get(Coordinator::class); + $coordinator->runLazyRegistration($appId); \OC_App::registerAutoloading($appId, $basedir); $previousVersion = $this->config->getAppValue($info['id'], 'installed_version', false); |