X-Git-Url: https://git.cweiske.de/bdrem.git/blobdiff_plain/76006cfc22b9462e50ff1a739ea25f99cf0d239d..6506b1ebe1ecaa6630d6d849c39b9e9d53603699:/src/bdrem/Cli.php diff --git a/src/bdrem/Cli.php b/src/bdrem/Cli.php index c38e173..2199161 100644 --- a/src/bdrem/Cli.php +++ b/src/bdrem/Cli.php @@ -3,14 +3,14 @@ namespace bdrem; class Cli extends UserInterface { - protected function loadParameters($cfg) + protected function loadParameters() { $params = $GLOBALS['argv']; array_shift($params); $storeInto = null; foreach ($params as $param) { if ($storeInto !== null) { - $cfg->$storeInto = (int)$param; + $this->config->$storeInto = (int)$param; $storeInto = null; continue; } @@ -28,7 +28,9 @@ class Cli extends UserInterface protected function render($arEvents) { - $r = new Renderer_Console(); + $r = new Renderer_Mail(); + $r->config = $this->config; + $r->ansi = true; echo $r->render($arEvents); } }