You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to call a method in my invocable from a hosted service but it's only possible if i register invocable in transient lifetime.
In docs invocable is registered: services.AddScoped<SendNightlyReportsEmailJob>();
Will something brake in Coravel internally if i register my invocable as transient? For example: services.AddTransient<SendNightlyReportsEmailJob>();
The text was updated successfully, but these errors were encountered:
You can scope your invocables as transient or scoped and everything should be fine.
If you really wanted (for some reason) you could even create a singleton invocable! That would still work assuming you are injecting dependencies that are appropriate for singletons.
I would like to call a method in my invocable from a hosted service but it's only possible if i register invocable in transient lifetime.
In docs invocable is registered:
services.AddScoped<SendNightlyReportsEmailJob>();
Will something brake in Coravel internally if i register my invocable as transient? For example:
services.AddTransient<SendNightlyReportsEmailJob>();
The text was updated successfully, but these errors were encountered: