summaryrefslogtreecommitdiff
path: root/jsonrpc.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-27 21:11:11 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-27 21:11:11 -0500
commit88d84073aecbe8bdc5f10825b6d7ca6b81c5f7b1 (patch)
treee823c8e13e9ffba115c8e1f5a05a514cac5322df /jsonrpc.php
parent0a14c8d5e5538e487dd6b012771f72aea6f4d5a6 (diff)
Add more subscribers
Diffstat (limited to 'jsonrpc.php')
-rw-r--r--jsonrpc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/jsonrpc.php b/jsonrpc.php
index 2153e0ee..411e73dc 100644
--- a/jsonrpc.php
+++ b/jsonrpc.php
@@ -2,6 +2,10 @@
require __DIR__.'/app/common.php';
+use Symfony\Component\EventDispatcher\Event;
+
+$container['dispatcher']->dispatch('api.bootstrap', new Event);
+
$server = new JsonRPC\Server;
$server->authentication(array('jsonrpc' => $container['config']->get('api_token')));