mirror of
https://github.com/bitwarden/browser.git
synced 2024-09-24 03:32:51 +02:00
2358443102
* feat: update service container for required service injection, refs AC-1679 * feat: complete approve all command, refs AC-1679 * fix: cast service container to access bit services, refs AC-1679 * fix: override service container from base program, refs AC-1679 * fix: prettier, refs AC-1679 * feat: replace hardcoded strings with i18n translations (future-proofing), refs AC-1679 * chore: remove i18n references, refs AC-1679 * fix: update approve-all and deny-all commands to match desired input, refs AC-1679
25 lines
909 B
TypeScript
25 lines
909 B
TypeScript
import {
|
|
OrganizationAuthRequestService,
|
|
OrganizationAuthRequestApiService,
|
|
} from "@bitwarden/bit-common/admin-console/auth-requests";
|
|
import { ServiceContainer as OssServiceContainer } from "@bitwarden/cli/service-container";
|
|
|
|
/**
|
|
* Instantiates services and makes them available for dependency injection.
|
|
* Any Bitwarden-licensed services should be registered here.
|
|
*/
|
|
export class ServiceContainer extends OssServiceContainer {
|
|
organizationAuthRequestApiService: OrganizationAuthRequestApiService;
|
|
organizationAuthRequestService: OrganizationAuthRequestService;
|
|
|
|
constructor() {
|
|
super();
|
|
this.organizationAuthRequestApiService = new OrganizationAuthRequestApiService(this.apiService);
|
|
this.organizationAuthRequestService = new OrganizationAuthRequestService(
|
|
this.organizationAuthRequestApiService,
|
|
this.cryptoService,
|
|
this.organizationUserService,
|
|
);
|
|
}
|
|
}
|