Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinzenz <vinzenz.rosenkranz@gmail.com>2016-03-14 14:09:56 +0300
committerVinzenz <vinzenz.rosenkranz@gmail.com>2016-03-14 14:09:56 +0300
commit01e88b9524bc7e70018fa9224348172e73167b92 (patch)
tree733b8a0bb61502927c47d48bb992332e889b664b /appinfo
parenta7d6993eeaff62a03ffebac3990e91f2e5c2e90d (diff)
get text participations
Diffstat (limited to 'appinfo')
-rw-r--r--appinfo/application.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php
index 997ff2f1..a0c45816 100644
--- a/appinfo/application.php
+++ b/appinfo/application.php
@@ -20,6 +20,7 @@ use \OCA\Polls\Db\DateMapper;
use \OCA\Polls\Db\EventMapper;
use \OCA\Polls\Db\NotificationMapper;
use \OCA\Polls\Db\ParticipationMapper;
+use \OCA\Polls\Db\ParticipationTextMapper;
use \OCA\Polls\Db\TextMapper;
use \OCA\Polls\Controller\PageController;
@@ -51,6 +52,7 @@ class Application extends App {
$c->query('EventMapper'),
$c->query('NotificationMapper'),
$c->query('ParticipationMapper'),
+ $c->query('ParticipationTextMapper'),
$c->query('TextMapper')
);
});
@@ -104,6 +106,12 @@ class Application extends App {
$server->getDb()
);
});
+ $container->registerService('ParticipationTextMapper', function($c) use ($server) {
+ /** @var SimpleContainer $c */
+ return new ParticipationTextMapper(
+ $server->getDb()
+ );
+ });
$container->registerService('TextMapper', function($c) use ($server) {
/** @var SimpleContainer $c */
return new TextMapper(