Accessing the config from the controller #5135
Answered
by
sbwalker
pnicosia80
asked this question in
Q&A
-
Hi all, My controller looks like this: Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
sbwalker
Mar 4, 2025
Replies: 1 comment 2 replies
-
@pnicosia80 you need to follow the exact same approach that is used for your IM4GIECLoudRopository... declare a local variable, inject the service in the constructor, assign the local variable to the service which was injected. This is the standard approach for dependency injection. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
pnicosia80
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@pnicosia80 you need to follow the exact same approach that is used for your IM4GIECLoudRopository... declare a local variable, inject the service in the constructor, assign the local variable to the service which was injected. This is the standard approach for dependency injection.