Class

Symfony\Component\Process\ExecutableFinder

class ExecutableFinder

Generic executable finder.

Methods

__construct()

setSuffixes(array $suffixes)

addSuffix($suffix)

string find(string $name, string $default = null)

Finds an executable by name.

Details

at line 26
public __construct()

at line 33
public setSuffixes(array $suffixes)

Parameters

array $suffixes

at line 38
public addSuffix($suffix)

Parameters

$suffix

at line 51
public string find(string $name, string $default = null)

Finds an executable by name.

Parameters

string $name The executable name (without the extension)
string $default The default to return if no executable is found

Return Value

string The executable path or default value