summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-07-02 17:28:27 +0200
committerRobin Appelman <robin@icewind.nl>2020-07-07 14:45:08 +0200
commit050e2fe346a389f60428c61e089a99cf5366da3b (patch)
tree72ebfd9bd67c023777058c43188d766d37aa4f31 /lib
parentcd7a6276f27e641cfa8f835c53cd3781e69d1d67 (diff)
downloadnextcloud-server-050e2fe346a389f60428c61e089a99cf5366da3b.tar.gz
nextcloud-server-050e2fe346a389f60428c61e089a99cf5366da3b.zip
allow admin to configure the max trashbin size
this allows an admin to configure the max trashbin size instead of always relying on the users quota. The trashbin size can be configured using the `occ trash:size` command and can be set both globally and per-user Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Server.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php
index eff190176b1..018041b9ecd 100644
--- a/lib/private/Server.php
+++ b/lib/private/Server.php
@@ -143,6 +143,7 @@ use OCP\AppFramework\QueryException;
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;
@@ -913,7 +914,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);
@@ -925,6 +926,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());
});