mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Overloading ContentPart to optionally have new shape passed in
If lambda takes an argument, it is dynamic, and is an uninitialized shape of the named type ShapeHelper and IShapeHelperFactory are obsolete - IShapeFactory itself is now dynamic --HG-- branch : dev
This commit is contained in:
@@ -24,13 +24,13 @@ namespace Orchard.Core.Localization.Controllers {
|
||||
IContentManager contentManager,
|
||||
ICultureManager cultureManager,
|
||||
ILocalizationService localizationService,
|
||||
IShapeHelperFactory shapeHelperFactory) {
|
||||
IShapeFactory shapeFactory) {
|
||||
_contentManager = contentManager;
|
||||
_cultureManager = cultureManager;
|
||||
_localizationService = localizationService;
|
||||
T = NullLocalizer.Instance;
|
||||
Services = orchardServices;
|
||||
Shape = shapeHelperFactory.CreateHelper();
|
||||
Shape = shapeFactory;
|
||||
}
|
||||
|
||||
dynamic Shape { get; set; }
|
||||
|
Reference in New Issue
Block a user