From 9f36a3184fac0d3b3150171acd3d8ace4d71dff5 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 2 Dec 2015 02:47:49 +0100 Subject: [PATCH] IcingaConfigHelper: add renderExpression --- library/Director/IcingaConfig/IcingaConfigHelper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/Director/IcingaConfig/IcingaConfigHelper.php b/library/Director/IcingaConfig/IcingaConfigHelper.php index b6f45a73..bb869271 100644 --- a/library/Director/IcingaConfig/IcingaConfigHelper.php +++ b/library/Director/IcingaConfig/IcingaConfigHelper.php @@ -128,6 +128,11 @@ class IcingaConfigHelper } + public static function renderExpression($string) + { + return "{{\n " . $string . "\n}}"; + } + public static function alreadyRendered($string) { return new IcingaConfigRendered($string);