Welcome Guest, Not a member yet? Register   Sign In
What the logic behind config files being classes?

I don't think that there is huge difference between class / object / array configs.

How ever in such class as https://github.com/lonnieezell/CodeIgnit...rvices.php
I don't like all of those static method definitions. Configs should be as cleanest as possible (even if they are classes).

And its a little bit of strange to have such important things outside the system. As I see it, it is +1 dependency for the system to work.
In CI 3 it was index.php > SYSTEM && APP , and now it is index.php > System && Config && App

I think that the flow should be:
index > init System (no configs here) > init App (configs && app)
Best VPS Hosting : Digital Ocean

Messages In This Thread
RE: What the logic behind config files being classes? - by sv3tli0 - 04-21-2016, 05:20 AM

Theme © iAndrew 2016 - Forum software by © MyBB