hardcoded config too (unrelated)

This commit is contained in:
Shish 2012-08-15 18:31:28 +01:00
parent fd4e801756
commit 61e9909327

View File

@ -120,6 +120,20 @@ abstract class BaseConfig implements Config {
}
/**
* For testing, mostly
*/
class HardcodeConfig extends BaseConfig {
public function __construct($dict) {
$this->values = $dict;
}
public function save(/*string*/ $name=null) {
// static config is static
}
}
/**
* Loads the config list from a PHP file; the file should be in the format:
*