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

addSuffix(string $suffix)

Adds new possible suffix to check for executable.

Parameters

string $suffix

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

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
array $extraDirs Additional dirs to check into

Return Value

string The executable path or default value
doc_Symfony
2016-10-28 06:15:40
Comments
Leave a Comment

Please login to continue.