mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-24 16:49:34 -05:00
25 lines
622 B
PHP
25 lines
622 B
PHP
<?php
|
|
|
|
namespace Icinga\Module\Businessprocess\Director;
|
|
|
|
use Icinga\Application\Config;
|
|
use Icinga\Module\Director\Hook\ShipConfigFilesHook;
|
|
use Icinga\Module\Businessprocess\Storage\LegacyStorage;
|
|
|
|
class ShipConfigFiles extends ShipConfigFilesHook
|
|
{
|
|
public function fetchFiles()
|
|
{
|
|
$files = array();
|
|
|
|
$storage = new LegacyStorage(
|
|
Config::module('businessprocess')->getSection('global')
|
|
);
|
|
|
|
foreach ($storage->listProcesses() as $name => $title) {
|
|
$files['processes/' . $name . '.bp'] = $storage->getSource($name);
|
|
}
|
|
|
|
return $files;
|
|
}
|
|
}
|