]> source.dussan.org Git - nextcloud-server.git/commitdiff
Clean up container usage in files trashbin 21863/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 16 Jul 2020 08:29:38 +0000 (10:29 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 16 Jul 2020 08:29:38 +0000 (10:29 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/files_trashbin/lib/AppInfo/Application.php

index 7081ec9b54e39581c3fa91b95eff4ce4b1c55f3d..d9f52d21a612213d0a2904d7f0e4aaf6d68d583d 100644 (file)
@@ -34,7 +34,6 @@ use OCA\Files_Trashbin\Expiration;
 use OCA\Files_Trashbin\Trash\ITrashManager;
 use OCA\Files_Trashbin\Trash\TrashManager;
 use OCP\AppFramework\App;
-use OCP\AppFramework\IAppContainer;
 
 class Application extends App {
        public function __construct(array $urlParams = []) {
@@ -66,7 +65,7 @@ class Application extends App {
                        );
                });
 
-               $container->registerService(ITrashManager::class, function (IAppContainer $c) {
+               $container->registerService(ITrashManager::class, function () {
                        return new TrashManager();
                });