blob: 4927aa5c605454116373521d4b3e7d6e5c499e45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
<?php
namespace Icinga\Module\Director\Clicommands;
use Icinga\Module\Director\Cli\Command;
use Icinga\Module\Director\PlainObjectRenderer;
class CoreCommand extends Command
{
public function constantsAction()
{
foreach ($this->api()->getConstants() as $name => $value) {
printf("const %s = %s\n", $name, PlainObjectRenderer::render($value));
}
}
}
|