Merge pull request #12448 from nextcloud/bugfix/noid/dav-loadapps
Load apps that have a dav type set before the dav server plugins
This commit is contained in:
commit
c993b6e261
|
@ -27,6 +27,8 @@ use OCA\DAV\AppInfo\Application;
|
||||||
use OCA\DAV\CardDAV\CardDavBackend;
|
use OCA\DAV\CardDAV\CardDavBackend;
|
||||||
use Symfony\Component\EventDispatcher\GenericEvent;
|
use Symfony\Component\EventDispatcher\GenericEvent;
|
||||||
|
|
||||||
|
\OC_App::loadApps(['dav']);
|
||||||
|
|
||||||
$app = new Application();
|
$app = new Application();
|
||||||
$app->registerHooks();
|
$app->registerHooks();
|
||||||
|
|
||||||
|
|
|
@ -103,9 +103,6 @@ class PluginManager {
|
||||||
if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
|
if (!isset($info['types']) || !in_array('dav', $info['types'], true)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// FIXME: switch to public API once available
|
|
||||||
// load app to make sure its classes are available
|
|
||||||
\OC_App::loadApp($app);
|
|
||||||
$this->loadSabrePluginsFromInfoXml($this->extractPluginList($info));
|
$this->loadSabrePluginsFromInfoXml($this->extractPluginList($info));
|
||||||
$this->loadSabreCollectionsFromInfoXml($this->extractCollectionList($info));
|
$this->loadSabreCollectionsFromInfoXml($this->extractCollectionList($info));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue