forked from hazza/dspace-angular
93803: Update DataService constructor signatures
Override linkPath/responseMsToLive/constructIdEndpoint - in class body for inheritable classes (for clarity: it's the first thing you'd read, variable name is right there) - in constructor for composable classes * wrapped services must be 'synchronized' with their wrapper * moved these overrides up in the argument list for emphasis (implementing a new composable feature? first thing is to use the same endpoint!)
This commit is contained in:
@@ -45,14 +45,14 @@ export interface CreateData<T extends CacheableObject> {
|
||||
export class CreateDataImpl<T extends CacheableObject> extends BaseDataService<T> implements CreateData<T> {
|
||||
constructor(
|
||||
protected linkPath: string,
|
||||
protected responseMsToLive: number,
|
||||
protected requestService: RequestService,
|
||||
protected rdbService: RemoteDataBuildService,
|
||||
protected objectCache: ObjectCacheService,
|
||||
protected halService: HALEndpointService,
|
||||
protected notificationsService: NotificationsService,
|
||||
protected responseMsToLive: number,
|
||||
) {
|
||||
super(linkPath, requestService, rdbService, objectCache, halService, responseMsToLive);
|
||||
super(requestService, rdbService, objectCache, halService, linkPath, responseMsToLive);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user