2022-08-18 04:47:49 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types = 1);
|
|
|
|
|
/**
|
2024-05-23 03:26:56 -04:00
|
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
2022-08-18 04:47:49 -04:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCP;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Service that find the binary path for a program.
|
|
|
|
|
*
|
2024-09-27 09:41:26 -04:00
|
|
|
* This interface should be injected via dependency injection and must
|
2022-08-18 04:47:49 -04:00
|
|
|
* not be implemented in applications.
|
|
|
|
|
*
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
interface IBinaryFinder {
|
|
|
|
|
/**
|
|
|
|
|
* Try to find a program
|
|
|
|
|
*
|
|
|
|
|
* @return false|string
|
|
|
|
|
* @since 25.0.0
|
|
|
|
|
*/
|
|
|
|
|
public function findBinaryPath(string $program);
|
|
|
|
|
}
|