diff options
author | Morris Jobke <hey@morrisjobke.de> | 2021-01-20 21:55:16 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2021-01-20 21:55:16 +0100 |
commit | d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d (patch) | |
tree | 70e023c63486c3cc20aa1ae746c8574abd841fa2 /apps/files_trashbin/tests | |
parent | 4c81f5c4ad3942cd8f4b8e9e67b956c0181ac435 (diff) | |
download | nextcloud-server-d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d.tar.gz nextcloud-server-d84e1f1951ac593db4cf2d3da5d8dbe5fdccc26d.zip |
Re-use fetched dependencies in lib/base.php
Reduces calls to DI container by reusing already fetched dependencies.
For status.php it went from 355 to 344.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_trashbin/tests')
-rw-r--r-- | apps/files_trashbin/tests/TrashbinTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php index 9265f5ec06a..76da2841e97 100644 --- a/apps/files_trashbin/tests/TrashbinTest.php +++ b/apps/files_trashbin/tests/TrashbinTest.php @@ -72,7 +72,7 @@ class TrashbinTest extends \Test\TestCase { // clear share hooks \OC_Hook::clear('OCP\\Share'); - \OC::registerShareHooks(); + \OC::registerShareHooks(\OC::$server->getSystemConfig()); // init files sharing new Application(); |