summaryrefslogtreecommitdiffstats
path: root/lib/private/app/platform.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-12-05 13:52:51 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-12-11 12:02:11 +0100
commit770f9876595a3cebd4b911a237ec1e681bc506be (patch)
tree7e6e3dda9ccfe843d506380d5c26f6c8f38911c4 /lib/private/app/platform.php
parent08f1db445134e98188f3e1e5b6b84a6eac1f6346 (diff)
downloadnextcloud-server-770f9876595a3cebd4b911a237ec1e681bc506be.tar.gz
nextcloud-server-770f9876595a3cebd4b911a237ec1e681bc506be.zip
adding supported libraries - including min and max version
Diffstat (limited to 'lib/private/app/platform.php')
-rw-r--r--lib/private/app/platform.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/private/app/platform.php b/lib/private/app/platform.php
index da515a235a2..6279bb5f20c 100644
--- a/lib/private/app/platform.php
+++ b/lib/private/app/platform.php
@@ -62,4 +62,10 @@ class Platform {
$path = \OC_Helper::findBinaryPath($command);
return ($path !== null);
}
+
+ public function getLibraryVersion($name) {
+ $repo = new PlatformRepository();
+ $lib = $repo->findLibrary($name);
+ return $lib;
+ }
}