#3417 renamed existing macrocontroller to macro rendering controller

This commit is contained in:
Dave Woestenborghs
2019-01-04 11:44:23 +01:00
parent 8304ada528
commit bb6848dd03
4 changed files with 5 additions and 5 deletions

View File

@@ -169,7 +169,7 @@ namespace Umbraco.Web.Editors
controller => controller.GetAllowedChildren(0))
},
{
"macroApiBaseUrl", _urlHelper.GetUmbracoApiServiceBaseUrl<MacroController>(
"macroApiBaseUrl", _urlHelper.GetUmbracoApiServiceBaseUrl<MacroRenderingController>(
controller => controller.GetMacroParameters(0))
},
{

View File

@@ -27,11 +27,11 @@ namespace Umbraco.Web.Editors
/// Session, we don't want it to throw null reference exceptions.
/// </remarks>
[PluginController("UmbracoApi")]
public class MacroController : UmbracoAuthorizedJsonController, IRequiresSessionState
public class MacroRenderingController : UmbracoAuthorizedJsonController, IRequiresSessionState
{
private readonly IVariationContextAccessor _variationContextAccessor;
public MacroController(IVariationContextAccessor variationContextAccessor)
public MacroRenderingController(IVariationContextAccessor variationContextAccessor)
{
_variationContextAccessor = variationContextAccessor;
}

View File

@@ -751,7 +751,7 @@
<Compile Include="Mvc\EnsurePublishedContentRequestAttribute.cs" />
<Compile Include="Mvc\UmbracoViewPage.cs" />
<Compile Include="Editors\LogController.cs" />
<Compile Include="Editors\MacroController.cs" />
<Compile Include="Editors\MacroRenderingController.cs" />
<Compile Include="Editors\MemberTypeController.cs" />
<Compile Include="Editors\UpdateCheckController.cs" />
<Compile Include="MembershipProviderExtensions.cs" />

View File

@@ -102,7 +102,7 @@ namespace umbraco
/// Initializes a new instance of the page for a content.
/// </summary>
/// <param name="content">The content.</param>
/// <remarks>This is for <see cref="MacroController"/> usage only.</remarks>
/// <remarks>This is for <see cref="MacroRenderingController"/> usage only.</remarks>
internal page(IContent content, IVariationContextAccessor variationContextAccessor)
: this(new PagePublishedContent(content, variationContextAccessor))
{ }