mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 09:14:09 +02:00
IcingaConfig: add getFileContents()
This commit is contained in:
parent
396120a1ce
commit
b8d312d3fe
@ -48,6 +48,16 @@ class IcingaConfig
|
||||
return $this->files;
|
||||
}
|
||||
|
||||
public function getFileContents()
|
||||
{
|
||||
$result = array();
|
||||
foreach ($this->files as $name => $file) {
|
||||
$result[$name] = $file->getContent();
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function getFileNames()
|
||||
{
|
||||
return array_keys($this->files);
|
||||
|
Loading…
x
Reference in New Issue
Block a user