1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 03:27:27 +00:00

Add FromAlias to the Mail service and some iriscontrol fixes

This commit is contained in:
Makis Maropoulos
2016-06-06 13:25:09 +03:00
parent 48aaca5bc0
commit 86694df84e
7 changed files with 38 additions and 11 deletions

View File

@@ -93,13 +93,17 @@ func New(cfg ...config.Iris) *Iris {
c := config.Default().Merge(cfg)
// create the Iris
s := &Iris{config: &c, plugins: &PluginContainer{}}
s := &Iris{config: &c}
// create & set the router
s.router = newRouter(s)
// set the Logger
s.logger = logger.New()
//set the plugin container
s.plugins = &PluginContainer{logger: s.logger}
// set the gzip writer pool
s.gzipWriterPool = sync.Pool{New: func() interface{} { return &gzip.Writer{} }}
return s
@@ -123,6 +127,7 @@ func (s *Iris) initTemplates() {
return err.Error()
}
})
s.templates = template.New(s.config.Render.Template)
}