diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-07-21 20:46:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-21 20:46:43 +0200 |
commit | 7b250db60b1211f44864539f4f037b3fa8c642f2 (patch) | |
tree | 4f4ade6e7321fcae98d9fd9843b9698bb1dd0090 /lib/private | |
parent | 9a7a8b6e38ced74eae05d2cacddff8a39b0c2b04 (diff) | |
parent | 050e2fe346a389f60428c61e089a99cf5366da3b (diff) | |
download | nextcloud-server-7b250db60b1211f44864539f4f037b3fa8c642f2.tar.gz nextcloud-server-7b250db60b1211f44864539f4f037b3fa8c642f2.zip |
Merge pull request #21658 from nextcloud/trashbin-configurable-size
allow admin to configure the max trashbin size
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Server.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 78bed4e6e38..09bb7336785 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -142,6 +142,7 @@ use OCP\App\IAppManager; use OCP\Authentication\LoginCredentials\IStore; use OCP\BackgroundJob\IJobList; use OCP\Collaboration\AutoComplete\IManager; +use OCP\Command\IBus; use OCP\Comments\ICommentsManager; use OCP\Contacts\ContactsMenu\IActionFactory; use OCP\Contacts\ContactsMenu\IContactsStore; @@ -917,7 +918,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerService('AsyncCommandBus', function (Server $c) { $busClass = $c->getConfig()->getSystemValue('commandbus'); if ($busClass) { - list($app, $class) = explode('::', $busClass, 2); + [$app, $class] = explode('::', $busClass, 2); if ($c->getAppManager()->isInstalled($app)) { \OC_App::loadApp($app); return $c->query($class); @@ -929,6 +930,7 @@ class Server extends ServerContainer implements IServerContainer { return new CronBus($jobList); } }); + $this->registerAlias(IBus::class, 'AsyncCommandBus'); $this->registerService('TrustedDomainHelper', function ($c) { return new TrustedDomainHelper($this->getConfig()); }); |