mail sending
[bdrem.git] / src / bdrem / Cli.php
index c38e1735f06721b8fac1944e500d48294e8aedc7..21991610cf2dfcbe696dbe8a025d8f34f6a193d7 100644 (file)
@@ -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);
     }
 }