Resvolution - SurfaceControllerResolver
This commit is contained in:
@@ -176,8 +176,7 @@ namespace Umbraco.Web
|
||||
|
||||
var routeVals = new RouteValueDictionary(new {area = ""});
|
||||
|
||||
var surfaceController = SurfaceControllerResolver.Current.RegisteredSurfaceControllers
|
||||
.SingleOrDefault(x => x == surfaceType);
|
||||
var surfaceController = Current.SurfaceControllerTypes.SingleOrDefault(x => x == surfaceType);
|
||||
if (surfaceController == null)
|
||||
throw new InvalidOperationException("Could not find the surface controller of type " + surfaceType.FullName);
|
||||
var metaData = PluginController.GetMetadata(surfaceController);
|
||||
@@ -637,8 +636,7 @@ namespace Umbraco.Web
|
||||
|
||||
var area = "";
|
||||
|
||||
var surfaceController = SurfaceControllerResolver.Current.RegisteredSurfaceControllers
|
||||
.SingleOrDefault(x => x == surfaceType);
|
||||
var surfaceController = Current.SurfaceControllerTypes.SingleOrDefault(x => x == surfaceType);
|
||||
if (surfaceController == null)
|
||||
throw new InvalidOperationException("Could not find the surface controller of type " + surfaceType.FullName);
|
||||
var metaData = PluginController.GetMetadata(surfaceController);
|
||||
|
||||
Reference in New Issue
Block a user