IcingaConfig: add getFileContents()
This commit is contained in:
parent
396120a1ce
commit
b8d312d3fe
|
@ -48,6 +48,16 @@ class IcingaConfig
|
||||||
return $this->files;
|
return $this->files;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getFileContents()
|
||||||
|
{
|
||||||
|
$result = array();
|
||||||
|
foreach ($this->files as $name => $file) {
|
||||||
|
$result[$name] = $file->getContent();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $result;
|
||||||
|
}
|
||||||
|
|
||||||
public function getFileNames()
|
public function getFileNames()
|
||||||
{
|
{
|
||||||
return array_keys($this->files);
|
return array_keys($this->files);
|
||||||
|
|
Loading…
Reference in New Issue