Add boostrap subscriber to cli script
This commit is contained in:
parent
9b287cd24b
commit
27f1be06f7
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
3
kanboard
3
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));
|
||||
|
|
|
|||
Loading…
Reference in New Issue