File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,12 +28,14 @@ func NewModule() *Module {
2828}
2929
3030// RegisterConfig registers database configuration
31- func (m * Module ) RegisterConfig (app modular.Application ) {
31+ func (m * Module ) RegisterConfig (app modular.Application ) error {
3232 m .config = & Config {
3333 Connections : make (map [string ]ConnectionConfig ),
3434 Default : "default" ,
3535 }
3636 app .RegisterConfigSection ("database" , modular .NewStdConfigProvider (m .config ))
37+
38+ return nil
3739}
3840
3941// Init initializes the database connections
@@ -104,11 +106,6 @@ func (m *Module) Name() string {
104106 return "database"
105107}
106108
107- // Dependencies returns module dependencies
108- func (m * Module ) Dependencies () []string {
109- return nil
110- }
111-
112109// ProvidesServices returns services provided by this module
113110func (m * Module ) ProvidesServices () []modular.ServiceProvider {
114111 providers := []modular.ServiceProvider {
You can’t perform that action at this time.
0 commit comments