Fixing Setup

--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-13 11:31:34 -08:00
parent 1cc8a01d89
commit 3907ab4de6
@@ -96,10 +96,7 @@ namespace Orchard.Setup {
builder.RegisterType<ShapeTemplateBindingStrategy>().As<IShapeTableProvider>().InstancePerLifetimeScope();
builder.RegisterType<BasicShapeTemplateHarvester>().As<IShapeTemplateHarvester>().InstancePerLifetimeScope();
builder.Register(context => new ShapeAttributeBindingStrategy(
context.Resolve<IEnumerable<ShapeAttributeOccurrence>>(),
context.Resolve<IComponentContext>(),
context.Resolve<RouteCollection>())).As<IShapeTableProvider>().SingleInstance();
builder.RegisterType<ShapeAttributeBindingStrategy>().As<IShapeTableProvider>().InstancePerMatchingLifetimeScope("shell");
builder.RegisterModule(new ShapeAttributeBindingModule());
}