Commit f6669edd authored by anarcat's avatar anarcat Committed by anarcat

add a parse hook to provisionConfig to allow implementations to parse existing files for data

parent 99be6b20
...@@ -25,12 +25,23 @@ class provisionConfig { ...@@ -25,12 +25,23 @@ class provisionConfig {
if (is_null($this->template)) { if (is_null($this->template)) {
throw(exception); throw(exception);
} }
$this->data = $this->parse();
if (sizeof($data)) { if (sizeof($data)) {
$this->data = $data; $this->data = array_merge($this->data, $data);
} }
$this->owner = d($owner); $this->owner = d($owner);
} }
/**
* Parse the existing config to load data
*
* This is called in the constructor, and should take care of
* opening the file and parsing it into the data array.
*/
function parse() {
return TRUE;
}
/** /**
* process the data before writing it * process the data before writing it
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment