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
As Symfony 4+ kinda deprecate injecting the whole container, wouldn't it make sense for the trait, rather than asking a getContainer method, ask for whatever it needs (a few parameters and the logger IIRC) ? So that these can be injected and used from a command as a service.
The text was updated successfully, but these errors were encountered:
Right now resetting the container every now and then is kinda necessary hence this dependency. That said I don't like it either and it might be worth exploring another way to do without it
As Symfony 4+ kinda deprecate injecting the whole container, wouldn't it make sense for the trait, rather than asking a
getContainer
method, ask for whatever it needs (a few parameters and the logger IIRC) ? So that these can be injected and used from a command as a service.The text was updated successfully, but these errors were encountered: