Refactor DI and type loading

This commit is contained in:
Stephan
2017-05-30 15:33:13 +02:00
parent d34a425dd1
commit b251d23a57
51 changed files with 1109 additions and 1113 deletions

View File

@@ -408,7 +408,7 @@ namespace Umbraco.Web.Services
var added = new List<string>();
// Load all Controller Trees by attribute
var types = Current.PluginManager.ResolveTypesWithAttribute<TreeController, TreeAttribute>(); // fixme inject
var types = Current.TypeLoader.GetTypesWithAttribute<TreeController, TreeAttribute>(); // fixme inject
//convert them to ApplicationTree instances
var items = types
.Select(x =>