getUnaliasedPath($this->configuration['in']); $data = file_exists($file) ? YAML::decode(file_get_contents($file)) : []; $keys = explode('/', $this->configuration['key']); NestedArray::setValue($data, $keys, $this->configuration['value']); file_put_contents($file, YAML::encode($data)); } }