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:
7
iris.go
7
iris.go
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user