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
|
Welcome Guest, Not a member yet? Register Sign In |