Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

ExecutableFinderInterface.php

Namespace

PhpTuf\ComposerStager\API\Finder\Service

File

vendor/php-tuf/composer-stager/src/API/Finder/Service/ExecutableFinderInterface.php

View source
<?php

declare (strict_types=1);
namespace PhpTuf\ComposerStager\API\Finder\Service;


/**
 * Finds executables.
 *
 * @package Finder
 *
 * @api This interface is subject to our backward compatibility promise and may be safely depended upon.
 */
interface ExecutableFinderInterface {
    
    /**
     * Finds the path to a given executable.
     *
     * @param string $name
     *   The machine name of the executable, e.g., "composer" or "rsync".
     *
     * @return string
     *   The path to the executable.
     *
     * @throws \PhpTuf\ComposerStager\API\Exception\LogicException
     *   If the executable cannot be found.
     */
    public function find(string $name) : string;

}

Interfaces

Title Deprecated Summary
ExecutableFinderInterface Finds executables.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal