Skip to content

Accessing the config from the controller #5135

Answered by sbwalker
pnicosia80 asked this question in Q&A
Discussion options

You must be logged in to vote

@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.

Replies: 1 comment 2 replies

Comment options

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

@pnicosia80
Comment options

Answer selected by pnicosia80
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