blob: 5ab5ec8af7974040b400b6d3aa73ae7aa5517bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
namespace bdrem;
class Cli
{
public function run()
{
$cfg = new Config();
$cfg->load();
$source = $cfg->loadSource();
$arEvents = $source->getEvents(
date('Y-m-d'), $cfg->daysBefore, $cfg->daysAfter
);
usort($arEvents, '\\bdrem\\Event::compare');
$r = new Renderer_Console();
echo $r->render($arEvents);
}
}
?>
|