mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-12 16:34:26 +02:00
17 lines
392 B
PHP
17 lines
392 B
PHP
<?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));
|
|
}
|
|
}
|
|
}
|