cloudsuite: add URLGenerator
This commit is contained in:
parent
4bbcd5cac8
commit
ddfacfe344
@ -48,6 +48,7 @@ class Application extends App {
|
||||
$c->query('Request'),
|
||||
$c->query('CoreConfig'),
|
||||
$c->query('L10N'),
|
||||
$c->query('URLGenerator'),
|
||||
$c->query('UserId')
|
||||
);
|
||||
});
|
||||
@ -84,5 +85,8 @@ class Application extends App {
|
||||
$uid = is_null($user) ? '' : $user->getUID();
|
||||
return $uid;
|
||||
});
|
||||
$container->registerService('URLGenerator', function ($c) {
|
||||
return $c->query('ServerContainer')->getUrlGenerator();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user