Controllers are all singleton despite dependencies having SCOPE.REQUEST
Sorikairox opened this issue · 0 comments
Sorikairox commented
Describe the bug
A clear and concise description of what the bug is.
For now, Controllers are singleton;
Expected behavior
Controller whose one or more dependencies have SCOPE.REQUEST
should be instantiated on every request.
We need to add metadata on the controller that tags it as "SCOPE.REQUEST" when injecting its dependencies. Then when adding it to resolved
map, either uses a singleton or a factory.