diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-11-14 22:44:25 -0500 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-11-14 22:44:25 -0500 |
commit | b081288188bb1744c9d7bd075aa5936e0ccbb9c4 (patch) | |
tree | 68008e35eb129f74b9b2a49f6f6076ed02b601c6 /kanboard | |
parent | 1487cb27634161ef558c367150213bc7077e4198 (diff) |
Use Pimple instead of Core\Registry and add Monolog for logging
Diffstat (limited to 'kanboard')
-rwxr-xr-x | kanboard | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -11,7 +11,7 @@ use Model\TaskFinder; use Model\TaskExport; use Model\Notification; -$config = new Config($registry); +$config = new Config($container); $config->setupTranslations(); $config->setupTimezone(); @@ -26,7 +26,7 @@ $cli->register('help', function() { }); // CSV Export -$cli->register('export-csv', function() use ($cli, $registry) { +$cli->register('export-csv', function() use ($cli, $container) { if ($GLOBALS['argc'] !== 5) { $cli->call($cli->default_command); @@ -36,7 +36,7 @@ $cli->register('export-csv', function() use ($cli, $registry) { $start_date = $GLOBALS['argv'][3]; $end_date = $GLOBALS['argv'][4]; - $taskExport = new TaskExport($registry); + $taskExport = new TaskExport($container); $data = $taskExport->export($project_id, $start_date, $end_date); if (is_array($data)) { @@ -45,10 +45,10 @@ $cli->register('export-csv', function() use ($cli, $registry) { }); // Send notification for tasks due -$cli->register('send-notifications-due-tasks', function() use ($cli, $registry) { +$cli->register('send-notifications-due-tasks', function() use ($cli, $container) { - $notificationModel = new Notification($registry); - $taskModel = new TaskFinder($registry); + $notificationModel = new Notification($container); + $taskModel = new TaskFinder($container); $tasks = $taskModel->getOverdueTasks(); // Group tasks by project |