And then I thought, well in that particular case why would you need to register the service at all? I come from a PHP background and in the Laravel framework the container has this feature that you can ask it to resolve a concrete class that you haven't even registered in it, because it can just auto-resolve all the bindings on the fly.
To be completely honest I haven't used this library yet. I was just reading the documentation and then I saw this line of code:
And then I thought, well in that particular case why would you need to register the service at all? I come from a PHP background and in the Laravel framework the container has this feature that you can ask it to resolve a concrete class that you haven't even registered in it, because it can just auto-resolve all the bindings on the fly.
Wouldn't that be possible here too?