feat: use dig for controllers

This commit is contained in:
Stavros
2026-06-14 00:20:06 +03:00
parent 7cd3719734
commit f8b85e3bc7
14 changed files with 351 additions and 139 deletions
+5 -1
View File
@@ -229,7 +229,7 @@ func (app *BootstrapApp) Setup() error {
Queries repository.Store
}
app.dig.Provide(func() utilityProvider {
err = app.dig.Provide(func() utilityProvider {
return utilityProvider{
Log: app.log,
Config: &app.config,
@@ -240,6 +240,10 @@ func (app *BootstrapApp) Setup() error {
}
})
if err != nil {
return fmt.Errorf("failed to provide utilities to container: %w", err)
}
// services
err = app.setupServices()