Class Symfony\Component\Process\ExecutableFinder

InheritanceSymfony\Component\Process\ExecutableFinder

Generic executable finder.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addSuffix() Adds new possible suffix to check for executable. Symfony\Component\Process\ExecutableFinder
find() Finds an executable by name. Symfony\Component\Process\ExecutableFinder
setSuffixes() Replaces default suffixes of executable. Symfony\Component\Process\ExecutableFinder

Method Details

addSuffix() public method

Adds new possible suffix to check for executable.

public void addSuffix ( $suffix )
$suffix string
find() public method

Finds an executable by name.

public string find ( $name, $default null, array $extraDirs = [] )
$name string

The executable name (without the extension)

$default string

The default to return if no executable is found

$extraDirs array

Additional dirs to check into

return string

The executable path or default value

setSuffixes() public method

Replaces default suffixes of executable.

public void setSuffixes ( array $suffixes )
$suffixes array