Open bssergy opened 6 years ago
I think we can create some configuration option to the Container to enable this behavior you want. I can not just change it because it would break a lot of code. In addition, auto bind is a nice feature that can reduce the configuration in many cases.
Currently, if we didn't bind type, it will be bound on get method:
But I want to return undefined if I forgot to bind a class (i.e. for unit tests). Could you fix to don't use bind() method in get() method()? I don't want to bind if I need just get type.