Merge pull request #21863 from nextcloud/techdebt/files-trashbin-container-cleanup

Clean up container usage in files trashbin
This commit is contained in:
Christoph Wurst 2020-07-16 18:46:10 +02:00 committed by GitHub
commit 684a7200ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View 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();
});