summaryrefslogtreecommitdiffstats
path: root/lib/private/App/Platform.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/App/Platform.php')
-rw-r--r--lib/private/App/Platform.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/App/Platform.php b/lib/private/App/Platform.php
index 15966d85c34..01bf6748654 100644
--- a/lib/private/App/Platform.php
+++ b/lib/private/App/Platform.php
@@ -26,6 +26,7 @@
namespace OC\App;
use OCP\IConfig;
+use OCP\IBinaryFinder;
/**
* Class Platform
@@ -70,9 +71,8 @@ class Platform {
/**
* @param $command
*/
- public function isCommandKnown($command): bool {
- $path = \OC_Helper::findBinaryPath($command);
- return ($path !== null);
+ public function isCommandKnown(string $command): bool {
+ return \OCP\Server::get(IBinaryFinder::class)->findBinaryPath($command) !== false;
}
public function getLibraryVersion(string $name): ?string {