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

Breadcrumb

  1. Drupal Core 11.1.x
  2. ExecutableFinder.php

class ExecutableFinder

Same name in this branch
  1. 11.1.x vendor/php-tuf/composer-stager/src/Internal/Finder/Service/ExecutableFinder.php \PhpTuf\ComposerStager\Internal\Finder\Service\ExecutableFinder
  2. 11.1.x vendor/symfony/process/ExecutableFinder.php \Symfony\Component\Process\ExecutableFinder

An executable finder which looks for executable paths in configuration.

@internal This is an internal part of Package Manager and may be changed or removed at any time without warning. External code should not interact with this class.

Hierarchy

  • class \Drupal\package_manager\ExecutableFinder implements \PhpTuf\ComposerStager\API\Finder\Service\ExecutableFinderInterface

Expanded class hierarchy of ExecutableFinder

File

core/modules/package_manager/src/ExecutableFinder.php, line 18

Namespace

Drupal\package_manager
View source
final class ExecutableFinder implements ExecutableFinderInterface {
    public function __construct(ExecutableFinderInterface $decorated, ConfigFactoryInterface $configFactory) {
    }
    
    /**
     * {@inheritdoc}
     */
    public function find(string $name) : string {
        $executables = $this->configFactory
            ->get('package_manager.settings')
            ->get('executables');
        return $executables[$name] ?? $this->decorated
            ->find($name);
    }

}

Members

Title Sort descending Modifiers Object type Summary
ExecutableFinder::find public function
ExecutableFinder::__construct public function

API Navigation

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