summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-01-10 11:02:23 -0500
committerFrederic Guillot <fred@kanboard.net>2015-01-10 11:02:23 -0500
commit27f1be06f71cee9682779b8f48405e1cf261ee7c (patch)
treebd1a1b75bb3b7be79c49d0918e4579a8d28269a8
parent9b287cd24b7347c0479e1b14e5187e310108f83a (diff)
Add boostrap subscriber to cli script
-rw-r--r--app/Subscriber/BootstrapSubscriber.php1
-rwxr-xr-xkanboard3
2 files changed, 4 insertions, 0 deletions
diff --git a/app/Subscriber/BootstrapSubscriber.php b/app/Subscriber/BootstrapSubscriber.php
index e256159a..35d0eff9 100644
--- a/app/Subscriber/BootstrapSubscriber.php
+++ b/app/Subscriber/BootstrapSubscriber.php
@@ -11,6 +11,7 @@ class BootstrapSubscriber extends Base implements EventSubscriberInterface
return array(
'session.bootstrap' => array('setup', 0),
'api.bootstrap' => array('setup', 0),
+ 'console.bootstrap' => array('setup', 0),
);
}
diff --git a/kanboard b/kanboard
index 7a9e648b..8b772f84 100755
--- a/kanboard
+++ b/kanboard
@@ -4,6 +4,9 @@
require __DIR__.'/app/common.php';
use Symfony\Component\Console\Application;
+use Symfony\Component\EventDispatcher\Event;
+
+$container['dispatcher']->dispatch('console.bootstrap', new Event);
$application = new Application('Kanboard', APP_VERSION);
$application->add(new Console\TaskOverdueNotification($container));