diff --git a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs index 6f91d32efe..a7539056b6 100644 --- a/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs +++ b/src/Microsoft.AspNet.Mvc/ServiceCollectionExtensions.cs @@ -1,4 +1,5 @@  +using Microsoft.AspNet.ConfigurationModel; using Microsoft.AspNet.DependencyInjection; namespace Microsoft.AspNet.Mvc @@ -9,5 +10,10 @@ namespace Microsoft.AspNet.Mvc { return services.Add(MvcServices.GetDefaultServices()); } + + public static ServiceCollection AddMvc(this ServiceCollection services, IConfiguration configuration) + { + return services.Add(MvcServices.GetDefaultServices(configuration)); + } } }