1
0

IBinaryFinder.php 530 B

123456789101112131415161718192021222324252627
  1. <?php
  2. declare(strict_types = 1);
  3. /**
  4. * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP;
  8. /**
  9. * Service that find the binary path for a program.
  10. *
  11. * This interface should be injected via depency injection and must
  12. * not be implemented in applications.
  13. *
  14. * @since 25.0.0
  15. */
  16. interface IBinaryFinder {
  17. /**
  18. * Try to find a program
  19. *
  20. * @return false|string
  21. * @since 25.0.0
  22. */
  23. public function findBinaryPath(string $program);
  24. }