0

How do I access appconfig from anywhere in the application without using injection?

On this solution the acess is by controller: link

Community
  • 1
  • 1
Rodrigo
  • 1,561
  • 1
  • 12
  • 12
  • 1
    You should use the injectable options. Everything else is an anti-pattern and defeats the purpose of having first class DI support – Tseng Jan 21 '17 at 13:12
  • Just curious... why don't you want to use DI? – Muqeet Khan Jan 23 '17 at 20:43
  • I have some functions in the "core" application that accesses fixed data in appconfig. It's not a new application ... it's an application migration to the new version. – Rodrigo Jan 24 '17 at 14:43

0 Answers0