#3545 - Added IContentTypeServiceBaseFactory to create a IContentTypeServiceBase (E.g. IContentTypeService or IMediaTypeService) based on the type of the IContentBase

This commit is contained in:
Bjarke Berg
2019-02-01 14:07:31 +01:00
parent bfc2d53fa4
commit 9acf913872
21 changed files with 130 additions and 42 deletions

View File

@@ -23,6 +23,7 @@ namespace Umbraco.Web.Models.Mapping
IUserService userService,
IContentService contentService,
IContentTypeService contentTypeService,
IContentTypeServiceBaseFactory contentTypeServiceBaseFactory,
ILocalizationService localizationService)
{
// create, capture, cache
@@ -30,7 +31,7 @@ namespace Umbraco.Web.Models.Mapping
var creatorResolver = new CreatorResolver(userService);
var actionButtonsResolver = new ActionButtonsResolver(userService, contentService);
var childOfListViewResolver = new ContentChildOfListViewResolver(contentService, contentTypeService);
var contentTypeBasicResolver = new ContentTypeBasicResolver<IContent, ContentItemDisplay>(contentTypeService);
var contentTypeBasicResolver = new ContentTypeBasicResolver<IContent, ContentItemDisplay>(contentTypeServiceBaseFactory);
var allowedTemplatesResolver = new AllowedTemplatesResolver(contentTypeService);
var defaultTemplateResolver = new DefaultTemplateResolver();
var variantResolver = new ContentVariantResolver(localizationService);