mirror of
https://github.com/bitwarden/server
synced 2025-12-31 23:53:17 +00:00
[PM-22442] Remove CollectionService (#6015)
* Refactor Collections and OrganizationExport Controllers to Remove ICollectionService Dependency * Remove ICollectionService registration from ServiceCollectionExtensions * Remove CollectionServiceTests file as part of the ongoing refactor to eliminate ICollectionService. * Remove ICollectionService and its implementation in CollectionService as part of the ongoing refactor to eliminate the service.
This commit is contained in:
@@ -19,7 +19,6 @@ namespace Bit.Api.Controllers;
|
||||
public class CollectionsController : Controller
|
||||
{
|
||||
private readonly ICollectionRepository _collectionRepository;
|
||||
private readonly ICollectionService _collectionService;
|
||||
private readonly ICreateCollectionCommand _createCollectionCommand;
|
||||
private readonly IUpdateCollectionCommand _updateCollectionCommand;
|
||||
private readonly IDeleteCollectionCommand _deleteCollectionCommand;
|
||||
@@ -30,7 +29,6 @@ public class CollectionsController : Controller
|
||||
|
||||
public CollectionsController(
|
||||
ICollectionRepository collectionRepository,
|
||||
ICollectionService collectionService,
|
||||
ICreateCollectionCommand createCollectionCommand,
|
||||
IUpdateCollectionCommand updateCollectionCommand,
|
||||
IDeleteCollectionCommand deleteCollectionCommand,
|
||||
@@ -40,7 +38,6 @@ public class CollectionsController : Controller
|
||||
IBulkAddCollectionAccessCommand bulkAddCollectionAccessCommand)
|
||||
{
|
||||
_collectionRepository = collectionRepository;
|
||||
_collectionService = collectionService;
|
||||
_createCollectionCommand = createCollectionCommand;
|
||||
_updateCollectionCommand = updateCollectionCommand;
|
||||
_deleteCollectionCommand = deleteCollectionCommand;
|
||||
|
||||
Reference in New Issue
Block a user