Renames project: Umbraco.ModelsBuilder.Embedded and namespaces since we need a different assembly, updates nuspec, changes file path of MB app_plugins
This commit is contained in:
20
src/Umbraco.ModelsBuilder.Embedded/ConfigsExtensions.cs
Normal file
20
src/Umbraco.ModelsBuilder.Embedded/ConfigsExtensions.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using Umbraco.Core.Configuration;
|
||||
using Umbraco.ModelsBuilder.Embedded.Configuration;
|
||||
|
||||
namespace Umbraco.ModelsBuilder.Embedded
|
||||
{
|
||||
/// <summary>
|
||||
/// Provides extension methods for the <see cref="UmbracoConfig"/> class.
|
||||
/// </summary>
|
||||
public static class ConfigsExtensions
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the models builder configuration.
|
||||
/// </summary>
|
||||
/// <remarks>Getting the models builder configuration freezes its state,
|
||||
/// and any attempt at modifying the configuration using the Setup method
|
||||
/// will be ignored.</remarks>
|
||||
public static IModelsBuilderConfig ModelsBuilder(this Configs configs)
|
||||
=> configs.GetConfig<IModelsBuilderConfig>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user