feat: inject runtime helpers to controllers and services

This commit is contained in:
Stavros
2026-06-21 13:00:36 +03:00
parent 23af559f2f
commit 474e297d9d
8 changed files with 25 additions and 0 deletions
+8
View File
@@ -294,6 +294,14 @@ func (app *BootstrapApp) Setup() error {
// runtime helpers
app.helpers.GetCookieDomain = app.getCookieDomain
err = app.dig.Provide(func() *model.RuntimeHelpers {
return &app.helpers
})
if err != nil {
return fmt.Errorf("failed to provide runtime helpers to container: %w", err)
}
// setup router
err = app.setupRouter()