diff options
author | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-09-06 20:11:20 +0300 |
---|---|---|
committer | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-09-06 20:11:20 +0300 |
commit | f5fadde9e27795a3d48a8101d24135bc50e445a2 (patch) | |
tree | 04771ada44f18c693846d42eafc336c2b2f94af8 /appinfo | |
parent | 4f9dcded6140ea317476cecc45dc127f99e0b53e (diff) |
only display groups based on search string
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/application.php | 5 | ||||
-rw-r--r-- | appinfo/routes.php | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index a8b9358d..123e436d 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -43,6 +43,7 @@ class Application extends App { $c->query('AppName'), $c->query('Request'), $c->query('UserManager'), + $c->query('GroupManager'), $server->getShareManager(), $c->query('AvatarManager'), $c->query('Logger'), @@ -64,6 +65,10 @@ class Application extends App { return $c->query('ServerContainer')->getUserManager(); }); + $container->registerService('GroupManager', function($c) { + return $c->query('ServerContainer')->getGroupManager(); + }); + $container->registerService('AvatarManager', function($c) { return $c->query('ServerContainer')->getAvatarManager(); }); diff --git a/appinfo/routes.php b/appinfo/routes.php index d594d1ec..9f5a1ee5 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -29,4 +29,6 @@ $application->registerRoutes($this, array('routes' => array( array('name' => 'page#insert_poll', 'url' => '/insert', 'verb' => 'POST'), array('name' => 'page#insert_vote', 'url' => '/insert/vote', 'verb' => 'POST'), array('name' => 'page#insert_comment', 'url' => '/insert/comment', 'verb' => 'POST'), + array('name' => 'page#search_for_groups', 'url' => '/search/groups', 'verb' => 'POST'), + array('name' => 'page#search_for_users', 'url' => '/search/users', 'verb' => 'POST'), ))); |