Skip to content

How to unbind @Singleton #12936

Answered by TheDeadOne
TheDeadOne asked this question in Q&A
Nov 1, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

I copied source of the BuiltinModule module, replace the call to the RoutesProvider.bindingsFromConfiguration method with FakeRouterProvider.bindingStub, which returns an empty router, disabled the original module in the configuration and enabled patched one. I don’t know if this is right or if it can’t be done better, but it works.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ihostage
Comment options

@TheDeadOne
Comment options

Answer selected by TheDeadOne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants