Clean up container usage in files trashbin

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-07-16 10:29:38 +02:00
parent 89fe5415f8
commit 9e7426a101
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
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();
});