docs(depinject): clarify how to wrap module (#23373)

Co-authored-by: Alex | Interchain Labs <alex@skip.money>
This commit is contained in:
Julien Robert 2025-01-14 15:45:45 +01:00 committed by GitHub
parent dfb5cc29f2
commit 80552a69c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,10 @@ var Register = RegisterModule
// will be injected into the container and can be requested by a provider
// function. All module initialization should be handled by the provided options.
//
// In some cases, a module may need to be manually overwritten from the global module
// registry. This can be done by calling RegisterModule again with the same config,
// but different options. This is useful when wrapping or overriding default modules.
//
// Protobuf message types used for module configuration should define the
// cosmos.app.v1alpha.module option and must explicitly specify go_package
// to make debugging easier for users.