Simplified DI resolution

This commit is contained in:
Deluan
2016-03-11 15:16:17 -05:00
parent e9861e1b26
commit f4c1dbdd3c
8 changed files with 12 additions and 22 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"github.com/deluan/gosonic/api/responses"
"github.com/deluan/gosonic/engine"
"github.com/deluan/gosonic/utils"
"github.com/karlkfi/inject"
)
type SearchingController struct {
@@ -14,7 +13,7 @@ type SearchingController struct {
}
func (c *SearchingController) Prepare() {
inject.ExtractAssignable(utils.Graph, &c.search)
utils.ResolveDependencies(&c.search)
}
func (c *SearchingController) Search2() {