Welcome Guest, Not a member yet? Register   Sign In
A helper/class to merge objects preserving structures
#2

One potential solution is use a BaseController that merges those settings with an instance of Config\App manually. Then extend all controllers from that BaseController. Then use simply pass the modified config instance into all libraries, and other classes. It's simple, and should work for 99% of your use cases, I would think. With the possible exception of the baseURL.
Reply


Messages In This Thread
RE: A helper/class to merge objects preserving structures - by kilishan - 11-19-2018, 01:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB