ExecutableFinder

ExecutableFinder

class ExecutableFinder

Generic executable finder.

Methods

setSuffixes(array $suffixes)

Replaces default suffixes of executable.

addSuffix(string $suffix)

Adds new possible suffix to check for executable.

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

Finds an executable by name.

Details

setSuffixes(array $suffixes)

Replaces default suffixes of executable.

Parameters

array $suffixes