mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-20 19:03:25 +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:
@@ -18,16 +18,19 @@ namespace Orchard.Blogs.Drivers {
|
||||
private readonly IBlogPostService _blogPostService;
|
||||
private readonly IFeedManager _feedManager;
|
||||
|
||||
public BlogPartDriver(IOrchardServices services, IContentManager contentManager, IBlogPostService blogPostService, IFeedManager feedManager, IShapeHelperFactory shapeHelperFactory) {
|
||||
public BlogPartDriver(
|
||||
IOrchardServices services,
|
||||
IContentManager contentManager,
|
||||
IBlogPostService blogPostService,
|
||||
IFeedManager feedManager) {
|
||||
Services = services;
|
||||
_contentManager = contentManager;
|
||||
_blogPostService = blogPostService;
|
||||
_feedManager = feedManager;
|
||||
T = NullLocalizer.Instance;
|
||||
Shape = shapeHelperFactory.CreateHelper();
|
||||
}
|
||||
|
||||
dynamic Shape { get; set; }
|
||||
|
||||
public Localizer T { get; set; }
|
||||
|
||||
protected override string Prefix { get { return ""; } }
|
||||
|
Reference in New Issue
Block a user