Writes an array of config changes from the source to the target storage.
protected function importConfig() {
foreach (array(
'delete',
'create',
'update',
) as $op) {
foreach ($this
->getUnprocessed($op) as $name) {
$config = new Config($name, $this->storageComparer
->getTargetStorage(), $this->context);
if ($op == 'delete') {
$config
->delete();
}
else {
$data = $this->storageComparer
->getSourceStorage()
->read($name);
$config
->setData($data ? $data : array());
$config
->save();
}
$this
->setProcessed($op, $name);
}
}
}