web text renderer
[bdrem.git] / src / bdrem / Cli.php
index 196ca18..807f336 100644 (file)
@@ -14,7 +14,11 @@ class Cli
             date('Y-m-d'), $cfg->daysBefore, $cfg->daysAfter
         );
         usort($arEvents, '\\bdrem\\Event::compare');
+        $this->render($arEvents);
+    }
 
+    public function render($arEvents)
+    {
         $r = new Renderer_Console();
         echo $r->render($arEvents);
     }