diff options
author | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-08-28 14:33:57 +0300 |
---|---|---|
committer | Vinzenz <vinzenz.rosenkranz@gmail.com> | 2016-08-28 14:33:57 +0300 |
commit | 4f9dcded6140ea317476cecc45dc127f99e0b53e (patch) | |
tree | 85a2b36ae336270dbe812dee6e16c77fab309057 /appinfo | |
parent | 997dc2f2247dd88ec5b6b82f2a8d05664a21b5e4 (diff) |
enhance the user/group selections
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/application.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/appinfo/application.php b/appinfo/application.php index 9791b6c4..a8b9358d 100644 --- a/appinfo/application.php +++ b/appinfo/application.php @@ -32,16 +32,18 @@ class Application extends App { parent::__construct('polls', $urlParams); $container = $this->getContainer(); + $server = $container->getServer(); /** * Controllers */ - $container->registerService('PageController', function($c) { + $container->registerService('PageController', function($c) use($server) { /** @var SimpleContainer $c */ return new PageController( $c->query('AppName'), $c->query('Request'), $c->query('UserManager'), + $server->getShareManager(), $c->query('AvatarManager'), $c->query('Logger'), $c->query('L10N'), @@ -74,7 +76,6 @@ class Application extends App { return $c->query('ServerContainer')->getL10N($c->query('AppName')); }); - $server = $container->getServer(); $container->registerService('AccessMapper', function($c) use ($server) { /** @var SimpleContainer $c */ return new AccessMapper( |