summaryrefslogtreecommitdiffstats
path: root/application/clicommands/CoreCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/clicommands/CoreCommand.php')
-rw-r--r--application/clicommands/CoreCommand.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/application/clicommands/CoreCommand.php b/application/clicommands/CoreCommand.php
new file mode 100644
index 0000000..4927aa5
--- /dev/null
+++ b/application/clicommands/CoreCommand.php
@@ -0,0 +1,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));
+ }
+ }
+}