IcingaConfig: add getFileContents()

This commit is contained in:
Thomas Gelf 2015-07-23 15:36:08 +02:00
parent 396120a1ce
commit b8d312d3fe
1 changed files with 10 additions and 0 deletions

View File

@ -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);