hardcoded config too (unrelated)
This commit is contained in:
parent
fd4e801756
commit
61e9909327
@ -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:
|
* Loads the config list from a PHP file; the file should be in the format:
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user