diff options
Diffstat (limited to 'kanboard')
-rwxr-xr-x | kanboard | 41 |
1 files changed, 1 insertions, 40 deletions
@@ -1,51 +1,12 @@ #!/usr/bin/env php <?php -use Kanboard\Console\PluginInstallCommand; -use Kanboard\Console\PluginUninstallCommand; -use Kanboard\Console\PluginUpgradeCommand; -use Kanboard\Console\ResetPasswordCommand; -use Kanboard\Console\ResetTwoFactorCommand; -use Kanboard\Console\WorkerCommand; -use Symfony\Component\Console\Application; use Symfony\Component\EventDispatcher\Event; -use Kanboard\Console\TaskOverdueNotificationCommand; -use Kanboard\Console\SubtaskExportCommand; -use Kanboard\Console\TaskExportCommand; -use Kanboard\Console\ProjectDailyStatsCalculationCommand; -use Kanboard\Console\ProjectDailyColumnStatsExportCommand; -use Kanboard\Console\TransitionExportCommand; -use Kanboard\Console\LocaleSyncCommand; -use Kanboard\Console\LocaleComparatorCommand; -use Kanboard\Console\TaskTriggerCommand; -use Kanboard\Console\CronjobCommand; - try { - require __DIR__.'/app/common.php'; - $container['dispatcher']->dispatch('app.bootstrap', new Event); - - $application = new Application('Kanboard', APP_VERSION); - $application->add(new TaskOverdueNotificationCommand($container)); - $application->add(new SubtaskExportCommand($container)); - $application->add(new TaskExportCommand($container)); - $application->add(new ProjectDailyStatsCalculationCommand($container)); - $application->add(new ProjectDailyColumnStatsExportCommand($container)); - $application->add(new TransitionExportCommand($container)); - $application->add(new LocaleSyncCommand($container)); - $application->add(new LocaleComparatorCommand($container)); - $application->add(new TaskTriggerCommand($container)); - $application->add(new CronjobCommand($container)); - $application->add(new WorkerCommand($container)); - $application->add(new ResetPasswordCommand($container)); - $application->add(new ResetTwoFactorCommand($container)); - $application->add(new PluginUpgradeCommand($container)); - $application->add(new PluginInstallCommand($container)); - $application->add(new PluginUninstallCommand($container)); - $application->run(); - + $container['cli']->run(); } catch (Exception $e) { echo $e->getMessage().PHP_EOL; exit(255); |