diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-04 21:06:00 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-10-09 15:41:50 +0200 |
commit | c97b4274ccdc4fa841b164dedb608fdf351a0412 (patch) | |
tree | 562862bfafb4840ec2265712965bc1eb621a44f9 /lib/public | |
parent | 877823eb9dc08f0675bb1183d35cbb1918348712 (diff) | |
download | nextcloud-server-c97b4274ccdc4fa841b164dedb608fdf351a0412.tar.gz nextcloud-server-c97b4274ccdc4fa841b164dedb608fdf351a0412.zip |
Add function to generate urls for OCS routes
fixes #11617
The OCS routes are only absolute for now as they are often exposed to
the outside anyway and are on a different endpoint than index.php in
anyway.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/IURLGenerator.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/IURLGenerator.php b/lib/public/IURLGenerator.php index ebf35967551..368f65fe4c1 100644 --- a/lib/public/IURLGenerator.php +++ b/lib/public/IURLGenerator.php @@ -51,6 +51,14 @@ interface IURLGenerator { public function linkToRouteAbsolute(string $routeName, array $arguments = array()): string; /** + * @param string $routeName + * @param array $arguments + * @return string + * @since 15.0.0 + */ + public function linkToOCSRouteAbsolute(string $routeName, array $arguments = []): string; + + /** * Returns an URL for an image or file * @param string $appName the name of the app * @param string $file the name of the file |