101 reputation
2
bio website csphere.eu
location Hamburg, Germany
age 30
visits member for 2 years, 3 months
seen Mar 7 at 19:35

PHP and SQL Development since early 2001


May
10
comment Why is Global State so Evil?
you can also have a config object factory or config proxy object, its up to you how this is done. it makes you able to seperate configuration stuff from other parts.
May
10
comment Why is Global State so Evil?
you can use a config class that handles access to those settings. i think its good practise to have one and only one place where configuration settings are read from config files and / or databases while other objects fetch them from that config thing. it makes your design more clean and predictable.