1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-24 12:03:21 +01:00

3 Commits

Author SHA1 Message Date
Nils Adermann
129d3c53bc [task/config-class] Correctly merge cached config with dynamically loaded data.
PHPBB3-9988
2011-01-12 00:21:12 +01:00
Igor Wiedler
106f6800d4 [task/config-class] Fix db config constructor param order
PHPBB3-9988
2011-01-11 19:38:10 +01:00
Nils Adermann
fb2642bbc6 [task/config-class] Implemented a config class to replace the global array.
There is a phpbb_config class which simply holds an array and does not persist
any data. It implements ArrayAccess, Countable and IteratorAggregate to allow
regular use of configuration as if it was still an array. The phpbb_config_db
class depends on an instance of the dbal and a cache driver. It obtains the
configuration data from cache and database as necessary and persists data to
the database.

The functions set_config and set_config_count remain for backward compatability
but they only call methods on the new config class now instead of directly
manipulating the database and cache.

PHPBB3-9988
2011-01-10 04:05:23 +01:00