2014-10-22 19:59:09 +02:00
|
|
|
#!/usr/bin/env php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require __DIR__.'/app/common.php';
|
|
|
|
|
2014-12-22 19:15:38 +01:00
|
|
|
use Symfony\Component\Console\Application;
|
2015-01-16 14:23:05 +01:00
|
|
|
use Symfony\Component\EventDispatcher\Event;
|
2015-10-26 14:48:27 +01:00
|
|
|
use Kanboard\Console\TaskOverdueNotification;
|
|
|
|
use Kanboard\Console\SubtaskExport;
|
|
|
|
use Kanboard\Console\TaskExport;
|
|
|
|
use Kanboard\Console\ProjectDailyStatsCalculation;
|
|
|
|
use Kanboard\Console\ProjectDailyColumnStatsExport;
|
|
|
|
use Kanboard\Console\TransitionExport;
|
|
|
|
use Kanboard\Console\LocaleSync;
|
|
|
|
use Kanboard\Console\LocaleComparator;
|
2015-01-16 14:23:05 +01:00
|
|
|
|
|
|
|
$container['dispatcher']->dispatch('console.bootstrap', new Event);
|
2014-12-22 19:15:38 +01:00
|
|
|
|
|
|
|
$application = new Application('Kanboard', APP_VERSION);
|
2015-10-26 14:48:27 +01:00
|
|
|
$application->add(new TaskOverdueNotification($container));
|
|
|
|
$application->add(new SubtaskExport($container));
|
|
|
|
$application->add(new TaskExport($container));
|
|
|
|
$application->add(new ProjectDailyStatsCalculation($container));
|
|
|
|
$application->add(new ProjectDailyColumnStatsExport($container));
|
|
|
|
$application->add(new TransitionExport($container));
|
|
|
|
$application->add(new LocaleSync($container));
|
|
|
|
$application->add(new LocaleComparator($container));
|
2014-12-22 19:15:38 +01:00
|
|
|
$application->run();
|