Clean up container usage in files trashbin
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
89fe5415f8
commit
9e7426a101
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue