Container sub-modules
RuBAN-GT opened this issue · comments
Dmitry commented
Implement container sub-modules like this:
sub_module = Justdi::SubModule.new do |register|
register.call(:schema).use_class(Graphql::Schema)
register.call(:server).use_class(Graphql::Server)
end
container.import_module(sub_module)