wiki.techinc.nl/includes/config/Config.php
Kunal Mehta 412c4668f1 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
2014-09-17 15:55:04 -07:00

47 lines
1.3 KiB
PHP

<?php
/**
* Copyright 2014
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* @file
*/
/**
* Interface for configuration instances
*
* @since 1.23
*/
interface Config {
/**
* Get a configuration variable such as "Sitename" or "UploadMaintenance."
*
* @param string $name Name of configuration option
* @return mixed Value configured
* @throws ConfigException
*/
public function get( $name );
/**
* Check whether a configuration option is set for the given name
*
* @param string $name Name of configuration option
* @return bool
* @since 1.24
*/
public function has( $name );
}