So I m just trying to test my modules, normally i would go and create a Kernel with the given module and then try to get an instance, however this scenario involves a few modules and it would be nicer if I could check that certain modules have access to certain Bindings (ie that implement and interface)
Is there any way to check if a binding for a given type is available without creating and instance of the class (ie so I don't have to make sure those dependencies are there)?
Damn, of course as soon as I posted I found that in the Kernel, there is a GetBindings()
method that does pretty much what I need.
Hope this helps to someone
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With