Add MultiConfig for fallback logic
authorKunal Mehta <legoktm@gmail.com>
Mon, 11 Aug 2014 12:17:37 +0000 (13:17 +0100)
committerKunal Mehta <legoktm@gmail.com>
Wed, 17 Sep 2014 22:55:04 +0000 (15:55 -0700)
commit412c4668f132a1ea8b9998b4d34435656d5303c4
tree4304373e4d0480d08a05bdf5f8071e6f4cbd37c6
parent93826089226b2553898b6e094cbe7ba495fe76c6
Add MultiConfig for fallback logic

This change adds MultiConfig and HashConfig classes,
but does not actually use them anywhere. In a future
change, we can convert DefaultSettings.php into
a HashConfig instance and use MultiConfig as the
'main' config instance.

Bug: 69418
Change-Id: I0ef2fbb86d5c27602d70240219ee08be31e2d09b
includes/AutoLoader.php
includes/config/Config.php
includes/config/GlobalVarConfig.php
includes/config/HashConfig.php [new file with mode: 0644]
includes/config/MultiConfig.php [new file with mode: 0644]
tests/phpunit/includes/config/GlobalVarConfigTest.php
tests/phpunit/includes/config/HashConfigTest.php [new file with mode: 0644]
tests/phpunit/includes/config/MultiConfigTest.php [new file with mode: 0644]